IMMREX7
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class LateArrivalMaster extends Model {
protected $primaryKey = 'idLateArrival';
protected $table = 'latearrival_master';
protected $fillable = ['idFinancialYear','maxLeave','idDepartment', 'idSchool', 'idDesignation', 'idEmployee', 'lateAllowed', 'lateAllowedTimes', 'halfDayAfter', 'deductionRatio','maxDays'];
public function department() {
return $this->belongsTo(Department::class, 'idDepartment', 'idDepartment');
}
public function designation() {
return $this->belongsTo(Designation::class, 'idDesignation', 'idDesignation');
}
public function employee() {
return $this->belongsTo(Employee::class, 'idEmployee', 'idEmployee');
}
}
Copyright © 2021 -