marking container loading date as a timestamp in the modal

This commit is contained in:
omair saleh
2021-10-01 17:52:28 +08:00
parent 9ef636c5d5
commit c66273874d
+2
View File
@@ -15,6 +15,8 @@ class Container extends AbstractModel implements Transportable
protected $fillable = ['status'];
protected $dates = ['loading_date'];
public function packingLists(): belongsToMany
{
return $this->belongsToMany(PackingList::class, ContainerPackingList::class, 'container_id', 'packing_list_id');