<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Expense extends Model { protected $fillable=['expense_no','expense_category_id','currency_id','exchange_rate','expense_date','amount','notes','user_id']; public function category(){return $this->belongsTo(ExpenseCategory::class,'expense_category_id');} public function currency(){return $this->belongsTo(Currency::class);} }
