mirror of
https://gitlab.com/omair-personal/izyim.git
synced 2026-08-19 20:34:09 +00:00
8a28eb1790
This reverts merge request !5
25 lines
402 B
PHP
25 lines
402 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
class PackingList extends AbstractModel
|
|
{
|
|
|
|
protected $table = 'packing_lists';
|
|
|
|
protected $fillable = [
|
|
'order_id', 'reference_no', 'confirmed'
|
|
];
|
|
|
|
public function packages()
|
|
{
|
|
return $this->hasMany(Package::class, 'list_id');
|
|
}
|
|
|
|
public function order()
|
|
{
|
|
return $this->belongsTo(Order::class, 'order_id');
|
|
}
|
|
}
|