first commit
This commit is contained in:
29
app/Models/Document.php
Normal file
29
app/Models/Document.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Document extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = "tbl_documents";
|
||||
protected $primaryKey = "document_id";
|
||||
|
||||
protected $fillable = [
|
||||
'document_name',
|
||||
'document_path',
|
||||
'document_for_ref',
|
||||
'description',
|
||||
'status',
|
||||
'description',
|
||||
'remarks'
|
||||
];
|
||||
|
||||
public function documentable()
|
||||
{
|
||||
return $this->morphTo();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user