<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class StockLedger extends Model { protected $fillable=['ledger_date','fuel_type_id','tank_id','owner_type','customer_id','qty_in','qty_out','balance','reference_type','reference_id','notes','user_id']; public function fuelType(){return $this->belongsTo(FuelType::class);} public function tank(){return $this->belongsTo(Tank::class);} public function customer(){return $this->belongsTo(Customer::class);} }
