<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class lawyersExpense extends Model
{
    protected $table = "lawyersExpenses";
    protected $fillable = ['lawyer_id', 'date', 'money', 'details', 'created_at', 'updated_at'];
    protected $hidden = ['created_at, updated_at'];


    public function lawyers()  /*** table name ***/
    {
        return $this->belongsTo('App\Models\lawyer', 'lawyer_id');
    }

}
