StocksNew/app/Models/Document.php
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +05:45

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();
}
}