Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
stokic committed May 12, 2020
1 parent a9a34e0 commit 9b26858
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
composer.phar
composer.lock
.DS_Store
Thumbs.db
Thumbs.db
.idea
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,20 @@ After that you can search your models with:

`Post::search('Bugs Bunny')->get();`

##Scout status

`php artisan scout:status`

With this simple command you'll get a quick overview of your search indices.

![Image of Scout Status Command](https://tnt.github.com/img/scout_status.png)

Or you can pass a searchable model argument:

`php artisan scout:status "App\Models\Post"`

![Image of Scout Status Command](https://tnt.github.com/img/scout_status_single.png)

## Constraints

Additionally to `where()` statements as conditions, you're able to use Eloquent queries to constrain your search. This allows you to take relationships into account.
Expand Down

0 comments on commit 9b26858

Please sign in to comment.