We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
so i find your sorting code not working if we are sorting related model and i find elsewhere the solution is doing something like this
$users = App\User::with(['posts' => function ($query) { $query->orderBy('created_at', 'desc'); }])->get();
but i don't know how to add that into FilterPaginateOrder trait so it will also work with related model sorting... can you help me please?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
so i find your sorting code not working if we are sorting related model and i find elsewhere the solution is doing something like this
but i don't know how to add that into FilterPaginateOrder trait so it will also work with related model sorting... can you help me please?
The text was updated successfully, but these errors were encountered: