PHP code example of amir-hossein5 / laravel-components

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

    

amir-hossein5 / laravel-components example snippets


//Controller
 $users = User::paginate(4);
//Blade
{{ $users->links() }}

<x-pagination::theme-name :elems="$users" 
html
<x-pagination::light-underlined
  :elems="$users"
  :showPaginatorDetails="false"
  :showDisabledButtons="true" 
/>
bash
php artisan vendor:publish --tag=pagination-gray