We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bac5310 commit 690b51cCopy full SHA for 690b51c
README.md
@@ -129,11 +129,15 @@ By default only Approved models will be returned on queries. To change this beha
129
130
#####To query the Approved Posts, run your queries as always.
131
```php
132
-//it will return all Approved Posts
+//it will return all Approved Posts (strict mode)
133
Post::all();
134
135
+// when not in strict mode
136
+Post::approved()->get();
137
+
138
//it will return Approved Posts where title is Horse
139
Post::where('title', 'Horse')->get();
140
141
```
142
#####Query pending or rejected models.
143
0 commit comments