Skip to content

Commit ded070b

Browse files
committed
2 parents d2a45f7 + 3cb9aca commit ded070b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,19 +128,19 @@ After that you can search your models with:
128128

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

131-
##Scout status
131+
## Scout status
132132

133133
`php artisan scout:status`
134134

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

137-
![Image of Scout Status Command](https://tnt.github.com/img/scout_status.png)
137+
![Image of Scout Status Command](https://teamtnt.github.io/img/scout_status.png)
138138

139139
Or you can pass a searchable model argument:
140140

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

143-
![Image of Scout Status Command](https://tnt.github.com/img/scout_status_single.png)
143+
![Image of Scout Status Command](https://teamtnt.github.io/img/scout_status_single_new.png)
144144

145145
## Constraints
146146

@@ -202,6 +202,7 @@ class PostController extends Controller
202202
## Adding via Query
203203
The `searchable()` method will chunk the results of the query and add the records to your search index.
204204

205+
```php
205206
$post = Post::find(1);
206207

207208
// You may also add record via collection...
@@ -213,6 +214,7 @@ $posts = Post::where('year', '>', '2018')->get();
213214

214215
// You may also add records via collections...
215216
$posts->searchable();
217+
```
216218

217219
When using constraints apply it after the constraints are added to the query, as seen in the above example.
218220

0 commit comments

Comments
 (0)