Add Container field
This commit is contained in:
28
app/Models/LoadingListItem.php
Normal file
28
app/Models/LoadingListItem.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class LoadingListItem extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'container_id',
|
||||
'mark',
|
||||
'description',
|
||||
'ctn',
|
||||
'qty',
|
||||
'total_qty',
|
||||
'unit',
|
||||
'price',
|
||||
'cbm',
|
||||
'total_cbm',
|
||||
'kg',
|
||||
'total_kg',
|
||||
];
|
||||
|
||||
public function container()
|
||||
{
|
||||
return $this->belongsTo(Container::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user