'Pending', 2 => 'Approved', 3 => 'Rejected', ]; public const TRANSFER_TYPE = [ 1 => 'Internal', 2 => 'External', 3 => 'Temporary', ]; public function oldDepartment() { return $this->belongsTo(Department::class, 'old_department_id')->withDefault(); } public function newDepartment() { return $this->belongsTo(Department::class, 'new_department_id')->withDefault(); } public function employee() { return $this->belongsTo(Employee::class, 'employee_id')->withDefault(); } public function approver() { return $this->belongsTo(Employee::class, 'approved_by')->withDefault(); } }