PHP code example of mohamedsabil83 / laravel-loadmore

1. Go to this page and download the library: Download mohamedsabil83/laravel-loadmore 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/ */

    

mohamedsabil83 / laravel-loadmore example snippets




namespace App;

use Illuminate\Database\Eloquent\Model;
use Mohamedsabil83\LaravelLoadmore\Loadmore;

class Blog extends Model
{
    use Loadmore;
}

// This is the default, 4 items on the first page and 16 items per subsequence page.
Blog::loadmore();

// 6 items on the first page and 16 items per subsequence page
Blog::loadmore(6);

// 6 items on the first page and 20 items per subsequence page
Blog::loadmore(6, 20);