File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -618,8 +618,8 @@ public function limit(callable $callback)
618
618
public function paging ()
619
619
{
620
620
$ max_records_per_page = $ this ->config ->get ('datatables.max_records_per_page ' , 0 );
621
- $ limit = (int ) $ this ->request ->input ('length ' ) > 0 ? $ this ->request ->input ('length ' ) : 10 ;
622
- $ limit = ($ max_records_per_page > 0 && $ limit > $ max_records_per_page ) ? $ max_records_per_page : $ limit ;
621
+ $ limit = (int ) $ this ->request ->input ('length ' ) > 0 ? $ this ->request ->input ('length ' ) : 10 ;
622
+ $ limit = ($ max_records_per_page > 0 && $ limit > $ max_records_per_page ) ? $ max_records_per_page : $ limit ;
623
623
if (is_callable ($ this ->limitCallback )) {
624
624
$ this ->query ->limit ($ limit );
625
625
call_user_func_array ($ this ->limitCallback , [$ this ->query ]);
Original file line number Diff line number Diff line change 122
122
/**
123
123
* Maximum records per page
124
124
* Set 0 for unlimited record
125
- * Do not use value under 10 if you are not using laravel-datatables-html
125
+ * Do not use value under 10 if you are not using laravel-datatables-html.
126
126
*/
127
127
'max_records_per_page ' => 0 ,
128
128
You can’t perform that action at this time.
0 commit comments