-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
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
specific columns #19
Comments
Please don't use the $orders = Order::whereNotNull('id')->get();
$qm = new DingoQueryMapper($request);
$orders = $qm->createFromCollection($orders)->paginate(); Now you have a paginated collection of your orders.. If you want to filter by specific fields, you can call it via your See the readme file for more details |
You can do your normal Eloquent-Queries as known from Laravel.. Then you pass it to the $orders = Order::where(...)->where(...)->where(...)->get();
$qm = new DingoQueryMapper($request);
$orders = $qm->createFromCollection($orders)->paginate(); is completely valid.. |
But i don't want to fetch all record and add query after that
query take just records with x name and y lastname |
I am very sorry, i really don't get what you mean / want.. |
But my apis query strings are dynamic |
How can i get specific columns in DingoQueryMapperBuilder
code like below :
The text was updated successfully, but these errors were encountered: