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
Currently, if we need to perform a query using Model class, we need to know too much about how query works in MongoDB.
The idea is to create some methods to abstract these queries.
$posts = Post::find(['tag' => 'mongolid', 'approved' => true]) ->limit($limit) ->skip(($page - 1) * $limit) ->sort(['created_at' => -1]);
$posts = Post::tag('mongolid') ->approved(true) ->newest() ->get($limit, $page);
Note: We would still be able to use the "old" method.
We need to talk a little bit about it :P
The text was updated successfully, but these errors were encountered:
rplansky
No branches or pull requests
Currently, if we need to perform a query using Model class, we need to know too much about how query works in MongoDB.
The idea is to create some methods to abstract these queries.
Examples
Today
Suggestion
Note: We would still be able to use the "old" method.
We need to talk a little bit about it :P
The text was updated successfully, but these errors were encountered: