belongsTo(Employee::class, 'employee_id'); } public function oldDesignation() { return $this->belongsTo(Designation::class, 'old_designation_id')->withDefault(['name' => '-']); } public function newDesignation() { return $this->belongsTo(Designation::class, 'new_designation_id')->withDefault(['name' => '-']); } }