Commit 42d8fed 1 parent 3d4f14a commit 42d8fed Copy full SHA for 42d8fed
File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ Currently the filter parser supports
17
17
- orWhereNotBetween
18
18
- withTrashed
19
19
- onlyTrashed
20
+ - scope
20
21
21
22
Sorting allows for multiple sort targets for ascending and descending sorts.
22
23
@@ -39,6 +40,7 @@ columns are returned.
39
40
queryparsercolumns
40
41
queryparserincludes
41
42
queryparserjoins
43
+ queryparserscopes
42
44
43
45
44
46
URL Parameter Format
Original file line number Diff line number Diff line change
1
+ Query Parser Scopes
2
+ =====================
3
+
4
+ .. warning :: This feature is a bit experimental at the moment.
5
+
6
+ example
7
+
8
+ ::
9
+
10
+ {api-uri}?scope[]=myscope
11
+
12
+ Allows the use of `Laravel scopes <https://laravel.com/docs/7.x/eloquent#query-scopes >`_
13
+
14
+ the `scope ` parameter should be the name of your scope less the trailing `Scope `
15
+
16
+ e.g. If your scope is called `activeScope ` then you would just use `active `
17
+
You can’t perform that action at this time.
0 commit comments