PHP code example of michaeljennings / eloquent-paginator

1. Go to this page and download the library: Download michaeljennings/eloquent-paginator 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/ */

    

michaeljennings / eloquent-paginator example snippets


$query->paginate(15);
$query->paginateWithSelects(15);

$query->paginateWithSelects(15, 'foo', 2);