You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,11 +82,13 @@ There are 2 types of flags:
82
82
83
83
All flags separated on 2 logical groups:
84
84
85
-
-`Classic` flags displays only entities with `true` or `timestamp` flag value.
86
-
-`Inverse` flags displays only entities with `false` or `null` flag value.
85
+
-`Classic` flags displays by default only entities with `true` or `timestamp` flag value.
86
+
-`Inverse` flags displays by default only entities with `false` or `null` flag value.
87
87
88
88
Omitted entities could be retrieved by using special global scope methods, unique for each flag.
89
89
90
+
> **Example:** If your `Article` model has `PublishedAt` flag then `Article::get()` will return you only published records. When you need to get only unpublished records you could call `Article::onlyUnpublished()->get()` and `Article::withUnpublished()->get()` will return you published and unpublished articles as well.
0 commit comments