mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-21 13:34:13 +00:00
31 lines
545 B
PHP
31 lines
545 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Spatie\Activitylog\Traits\LogsActivity;
|
|
|
|
class PackingList extends Model
|
|
{
|
|
|
|
use LogsActivity;
|
|
|
|
protected $table = 'packing_lists';
|
|
|
|
protected $fillable = [
|
|
'order_id', 'reference_no', 'confirmed'
|
|
];
|
|
|
|
protected static $logFillable = true;
|
|
|
|
public function packages()
|
|
{
|
|
return $this->hasMany(Package::class, 'list_id');
|
|
}
|
|
|
|
public function order()
|
|
{
|
|
return $this->belongsTo(Order::class, 'order_id');
|
|
}
|
|
}
|