/
home
/
maktab
/
server
/
app
/
Models
/
File Upload :
llllll
Current File: /home/maktab/server/app/Models/StudentAttendance.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class StudentAttendance extends Model { use HasFactory, Selector; protected $fillable = [ 'employee_id', 'student_id', 'date_at', 'name', 'present', 'maktab_id', 'report_id', 'body', 'absent_body' ]; protected $casts = [ 'present' => 'boolean', 'date_at' => 'datetime', ]; public function student() { return $this->belongsTo(Student::class)->withTrashed(); } public function maktab() { return $this->belongsTo(Maktab::class); } public function employee() { return $this->belongsTo(User::class,'employee_id'); } }
Copyright ©2k19 -
Hexid
|
Tex7ure