PHP code example of eozden / paginator-route
1. Go to this page and download the library: Download eozden/paginator-route library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
eozden / paginator-route example snippets
'api' => [
'throttle:60,1',
\Eozden\PaginatorRoute\Http\Middleware\PaginatorRoute::class
],
# In your route file contains this route.
Route::get('/users/list/{page}', 'UserController@list');
# In your UserController file use as normal.
public function list()
{
User::paginate(30);
}