init project
This commit is contained in:
43
app/Models/Supplier.php
Normal file
43
app/Models/Supplier.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
||||
class Supplier extends BaseModel
|
||||
{
|
||||
public $timestamps = true;
|
||||
use HasFactory;
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
|
||||
protected $table = 'suppliers';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
protected $fillable = [
|
||||
'name_en',
|
||||
'name_kh',
|
||||
'contact_name',
|
||||
'position',
|
||||
'phone_number',
|
||||
'email',
|
||||
'address',
|
||||
'website',
|
||||
'vat_number',
|
||||
'description',
|
||||
'lab_id',
|
||||
'created_at',
|
||||
'created_by',
|
||||
'updated_at',
|
||||
'updated_by',
|
||||
'record_status_id'
|
||||
];
|
||||
|
||||
public static function boot()
|
||||
{
|
||||
parent::boot();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user