IMMREX7
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use App\Traits;
class HostelFeeDiscount extends Model
{
use Traits\AutoUpdateUserColumns;
protected $primaryKey = 'idHostelDiscount';
protected $table = 'hostelfee_discount';
protected $fillable = ['idStudent', 'idFinancialYear', 'idSchool', 'idHostelFeehead', 'amount', 'percentage','remarks'];
public function student() {
return $this->belongsTo(AdmEntry::class, 'idStudent', 'idStudent');
}
public function feehead() {
return $this->belongsTo(HostelFeehead::class, 'idHostelFeehead', 'idHostelFeehead');
}
}
Copyright © 2021 -