芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/panoramawholesale.com/app/Models/Leave.php
'integer', 'department_id' => 'integer', 'employee_id' => 'integer', 'leave_type_id'=>'integer', 'half_day' => 'integer', ]; public function employee() { return $this->hasOne('App\Models\Employee', 'id', 'employee_id'); } public function company() { return $this->hasOne('App\Models\Company', 'id', 'company_id'); } public function department() { return $this->hasOne('App\Models\Department', 'id', 'department_id'); } public function leave_type() { return $this->belongsTo('App\Models\LeaveType'); } }