IMMREX7

aku nok ndi : /home/spdtg/www/schoolmis/app/
File Up :
aku nok ndi : /home/spdtg/www/schoolmis/app/ActionShift.php

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class ActionShift extends Model {

    protected $primaryKey = 'id';
    protected $table = 'special_shifts';
    protected $fillable = ['idDepartment', 'idSchool', 'idDesignation', 'idEmployee','idFinancialYear','type','increment','shift_date'];

    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 - 2025 IMMREX7