mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
28 lines
598 B
PHP
28 lines
598 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
use Illuminate\Database\Eloquent\Relations\MorphMany;
|
|
|
|
class ContainerPackingList extends AbstractModel
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'container_packing_lists';
|
|
|
|
public function packingList(): HasMany
|
|
{
|
|
return $this->hasMany(PackingList::class, 'packing_list_id', 'id');
|
|
}
|
|
|
|
/**
|
|
* @return MorphMany
|
|
*/
|
|
public function transports(): morphMany
|
|
{
|
|
return $this->morphMany(Transport::class, 'owner');
|
|
}
|
|
}
|