StocksNew/app/Models/Document.php

30 lines
540 B
PHP
Raw Normal View History

2024-08-27 12:03:06 +00:00
<?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();
}
}