Created
December 19, 2018 13:30
-
-
Save nunomaduro/23999becbf0bc6b4f5b18a53aa576df5 to your computer and use it in GitHub Desktop.
Scout Extended Where
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$articles = Article::search('Star Trek')->where('views', '>', 100)->get(); | |
$articles = Article::search('Star Trek')->where('created_at', '>=', now()->subDays(7))->get(); | |
$articles = Article::search('Star Trek')->where('views', 100)->get(); // views = 100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment