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