'date', 'notice_date' => 'date', 'approved_at' => 'datetime', 'exit_interview_conducted' => 'boolean', 'exit_interview_date' => 'date', ]; /** * Get the employee who is being terminated. */ public function employee() { return $this->belongsTo(User::class, 'employee_id'); } /** * Get the user who approved this termination. */ public function approver() { return $this->belongsTo(User::class, 'approved_by'); } /** * Get the user who created this termination. */ public function creator() { return $this->belongsTo(User::class, 'created_by'); } }