-
Notifications
You must be signed in to change notification settings - Fork 34
Closed
Labels
needs more infoMore information is requiredMore information is required
Description
- Laravel Version: 10
- Nova Version: 4
- PHP Version: 8
- Database Driver & Version: mysql
- Operating System and Version: mac
- Browser type and version: chrome
Description:
i am trying to sort the select dropdown for belongsto relationship
in my Lead resource, i have a belongsto field:
BelongsTo::make('Status')
->dontReorderAssociatables()
i have tried using the relatable query method to sort the select:
public static function relatableQuery(NovaRequest $request, $query)
{
return $query->orderBy('order');
}
it does not sort the Status belongsto select by what i am specifying
Metadata
Metadata
Assignees
Labels
needs more infoMore information is requiredMore information is required