-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hi @LIQRGV, I am using this package and try to fetch 13k records, and they loaded as my expectation. But I think it would be nice if we have a default pagination limit. I am thinking some of these terms:
- We can set a default limit value in a config file.
- The default pagination limit is
null, means no limit. - We can create a child RequestParser class, and override the pagination limit with a class property.
<?php
namespace App\Http\Requests;
use Illuminate\Http\Request;
use LIQRGV\QueryFilter\RequestParser;
class BrowseInvoice extends RequestParser
{
protected $pageLimit = 50;
public function __construct(Request $request)
{
parent::__construct($request);
}
}
Metadata
Metadata
Assignees
Labels
No labels