mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-19 20:44:01 +00:00
24 lines
512 B
PHP
24 lines
512 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class PackingListPackage extends AbstractModel
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'packing_list_packages';
|
|
|
|
public function package(): BelongsTo
|
|
{
|
|
return $this->BelongsTo(Package::class, 'package_id', 'id');
|
|
}
|
|
|
|
public function packageList(): BelongsTo
|
|
{
|
|
return $this->BelongsTo(PackageList::class, 'packing_list_id', 'id');
|
|
}
|
|
}
|