/
home
/
maktab
/
server
/
app
/
Models
/
File Upload :
llllll
Current File: /home/maktab/server/app/Models/Student.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Student extends Model { use HasFactory,SoftDeletes,Selector; protected $fillable = [ 'fname', 'lname', 'name', 'birth_day', 'father_name', 'father_birthday', 'father_education', 'father_job', 'father_job_address', 'father_job_phone', 'father_mobile', 'family_count', 'mother_name', 'mother_mobile', 'mother_birthday', 'mother_education', 'mother_job', 'mobile', 'employee_id', 'maktab_id', 'file_id', 'active', 'date_at',//تاریخ ورود 'n_member',//شناسه عضویت 'n_code',//شماره شناسنامه 'address', 'phone', 'presenter_name',//نام معرف 'interview' ]; protected $casts=[ 'active'=>'boolean' ]; public function maktab() { return $this->belongsTo(Maktab::class); } public function file() { return $this->belongsTo(File::class); } public function teacher() { return $this->belongsTo(User::class,'employee_id'); } public function healthFolder() { return $this->hasMany(HealthFolder::class,'student_id'); } public function attendance() { return $this->hasOne(StudentAttendance::class,'student_id'); } }
Copyright ©2k19 -
Hexid
|
Tex7ure