bug fixes, daily reports, holidays
This commit is contained in:
@@ -27,7 +27,13 @@ class StaffMember extends Authenticatable
|
||||
public function dependents() {
|
||||
return $this->hasMany(StaffDependent::class, 'staff_id');
|
||||
}
|
||||
public function dailyReports() {
|
||||
return $this->hasMany(DailyReport::class, 'user_id');
|
||||
}
|
||||
|
||||
public function department(){
|
||||
return $this->hasOne('App\Models\Department', 'id', 'department_id');
|
||||
}
|
||||
// 4. Cast dates correctly
|
||||
protected $casts = [
|
||||
// 'dob' => 'date',
|
||||
|
||||
Reference in New Issue
Block a user