<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;


class Container extends Model {
use HasFactory;
protected $fillable = [
'voyage_id','baplie_file_id','container_no','iso_type','status','carrier_code',
'weight_kg','bay','row','tier','pol_locode','pod_locode','delivery_locode',
'bl_no','imdg_class','un_number','remarks'
];
public function voyage(){ return $this->belongsTo(Voyage::class); }
public function baplieFile(){ return $this->belongsTo(BaplieFile::class); }
}