'datetime', 'end_date' => 'datetime', ]; // Define the relationship to the User (Faculty) public function department() { return $this->belongsTo(Department::class, 'department_id'); } public function user() { return $this->belongsTo(User::class, 'faculty_id'); } }