File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,6 @@ abstract class Controller extends BaseController
71
71
*/
72
72
protected $ user ;
73
73
74
-
75
-
76
74
/**
77
75
* Holds the available table columns
78
76
*
Original file line number Diff line number Diff line change 5
5
use Phpsa \LaravelApiController \Exceptions \UnknownColumnException ;
6
6
7
7
8
- Class Parser {
8
+ Trait Parser {
9
9
10
10
/**
11
11
* Default Fields to response with.
@@ -169,6 +169,8 @@ protected function parseFieldParams() : array
169
169
protected function parseLimitParams () : int
170
170
{
171
171
172
+ $ limit = $ this ->request ->has ('limit ' ) ? intval ($ this ->request ->input ('limit ' )) : $ this ->defaultLimit ;
173
+
172
174
if ($ this ->maximumLimit && ($ limit > $ this ->maximumLimit || ! $ limit )) {
173
175
$ limit = $ this ->maximumLimit ;
174
176
}
Original file line number Diff line number Diff line change 5
5
use Illuminate \Http \Response as Res ;
6
6
use Illuminate \Pagination \LengthAwarePaginator ;
7
7
8
- Class Response {
8
+ Trait Response {
9
9
10
10
/**
11
11
* HTTP header status code.
You can’t perform that action at this time.
0 commit comments