IMMREX7

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

<?php

namespace App;

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

class StudentDocument extends Model {

    use Traits\AutoUpdateUserColumns;

    protected $primaryKey = 'idStdDocument';
    protected $table = 'student_documents';
    protected $fillable = ['idStudent', 'idFinancialYear', 'idDocType', 'document'];

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

}

Copyright © 2021 - 2025 IMMREX7