30 lines
540 B
PHP
30 lines
540 B
PHP
<?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();
|
|
}
|
|
}
|