IMMREX7

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

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use App\Traits;

class StudentDiscount extends Model {

    use Traits\AutoUpdateUserColumns;

    protected $primaryKey = 'idStdDiscount';
    protected $table = 'student_discounts';
    protected $fillable = ['idStudent', 'idFinancialYear', 'idSchool', 'idFeehead', 'amount', 'percentage','remarks'];

    public function student() {
        return $this->belongsTo(AdmEntry::class, 'idStudent', 'idStudent');
    }

    public function feehead() {
        return $this->belongsTo(FeeHead::class, 'idFeehead', 'idFeehead');
    }

}

Copyright © 2021 - 2025 IMMREX7