mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-23 06:23:59 +00:00
26 lines
471 B
PHP
26 lines
471 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Spatie\Activitylog\Traits\LogsActivity;
|
|
|
|
class Package extends Model
|
|
{
|
|
|
|
use LogsActivity;
|
|
|
|
protected $table = 'packages';
|
|
|
|
protected $fillable = [
|
|
'list_id', 'description', 'width', 'length', 'height', 'quantity'
|
|
];
|
|
|
|
protected static $logFillable = true;
|
|
|
|
public function packingList()
|
|
{
|
|
return $this->belongsTo(PackingList::class, 'list_id');
|
|
}
|
|
}
|