<?php

namespace App\Models;

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

class PayrollBill extends Model
{

    use SoftDeletes;
    use HasFactory;

    protected $table = 'payroll_bills';
    protected $primaryKey = 'PRB_id';

    protected $fillable = [
        'PayBill_Code',
        'Description',
        'Lg_Id'
    ];

    public function ledger()
    {
        return $this->belongsTo(LedgerMaster::class, 'Lg_Id', 'Lg_Id');
    }
}
