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