We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i am trying to sort the select dropdown for belongsto relationship
in my Lead resource, i have a belongsto field:
Lead
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
Status
The text was updated successfully, but these errors were encountered:
Try the following:
public static function relatableQuery(NovaRequest $request, $query) { return $query->reorder()->orderBy('order'); }
Sorry, something went wrong.
No branches or pull requests
Description:
i am trying to sort the select dropdown for belongsto relationship
in my
Lead
resource, i have a belongsto field:i have tried using the relatable query method to sort the select:
it does not sort the
Status
belongsto select by what i am specifyingThe text was updated successfully, but these errors were encountered: