D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
kader-lms.com
/
Modules
/
ExamPlan
/
Entities
/
Filename :
AdmitCard.php
back
Copy
<?php namespace Modules\ExamPlan\Entities; use App\Models\StudentRecord; use App\SmExamType; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Factories\HasFactory; class AdmitCard extends Model { use HasFactory; protected $fillable = []; public function studentRecord(){ return $this->belongsTo(StudentRecord::class,'student_record_id','id'); } public function examType(){ return $this->belongsTo(SmExamType::class,'exam_type_id','id'); } }