<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Tank extends Model { protected $fillable=['name','fuel_type_id','capacity','current_qty','own_qty','customer_qty','location','is_active']; protected $casts=['is_active'=>'boolean']; public function fuelType(){return $this->belongsTo(FuelType::class);} public function ledgers(){return $this->hasMany(StockLedger::class);} }
