Select Field relationship on edit page

Forms\Components\Select::make('employee_code_with_full_name')
->label(__('cranberry-cookie::cranberry-cookie.form.input.employee_code_with_name'))
->searchable()
->relationship(
   name: 'employee',
   titleAttribute: 'employee_code_with_full_name',
   modifyQueryUsing: function (Builder $query, string $operation) {
                      $query->where('status',EmployeeStatus::ACTIVE);
                       })

it shows emplyee id on edit page but i need to show the employee_code_with_full_name
Was this page helpful?