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
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ class User extends Model
76
76
}
77
77
```
78
78
79
-
Once the trait is added, you can call the filter() method on your model statically:
79
+
Once the trait is added, you can call the `filter()` method on your model statically:
80
80
81
81
```php
82
82
use App\Models\User;
@@ -88,8 +88,8 @@ $users = User::filter([
88
88
])->get(); // or ->first()
89
89
```
90
90
91
-
* Without Filterable, filter() won’t exist on your model.
92
-
* You can optionally define $allowedFilters in the model or rely on the config for auto-generated filters. If your $allowedFilters is protected, you have to define a public get method to access it. For example:
91
+
* Without Filterable, `filter()` won’t exist on your model.
92
+
* You can optionally define $allowedFilters in the model or rely on the config for auto-generated filters. If your `$allowedFilters` is protected, you have to define a public get method to access it. For example:
0 commit comments