/
home
/
maktab
/
server
/
app
/
Models
/
File Upload :
llllll
Current File: /home/maktab/server/app/Models/ReportStudentAttendance.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class ReportStudentAttendance extends Model { use HasFactory,Selector; protected $fillable = [ 'title', 'count', 'file_id', 'date_at', 'type', 'maktab_id', 'teacher_id', 'count_absent', 'body' ]; public function file() { return $this->belongsTo(File::class); } public function studentAttendance() { return $this->hasMany(StudentAttendance::class,'report_id'); } public function maktab(){ return $this->belongsTo(Maktab::class); } public function teacher(){ return $this->belongsTo(User::class,'teacher_id'); } }
Copyright ©2k19 -
Hexid
|
Tex7ure