Skip to content

ricardov03/uikit-laravel-paginator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UIkit paginator for Laravel

Laravel Paginator template for the UIKit JS/CSS Library from YOOtheme.

How To Use This File?

  1. Export the existing paginator's files with the default artisan vendor command:
php artisan vendor:publish --tag=laravel-pagination
  1. Copy the uikit.blade.php file into the vendor directory with the other paginator's files.
cp ./resources/views/vendor/pagination/uikit.blade.php /path/to/laravel/installation/resources/views/vendor/pagination/.
  1. Update the default paginator updating the boot method in the AppServiceProvider.php file on 'app/Providers' with the following script:
...
use Illuminate\Pagination\Paginator;
...
class AppServiceProvider extends ServiceProvider
{
...
		public function boot()
	    {
        ...
        Paginator::defaultView('pagination::uikit');
        Paginator::defaultSimpleView('pagination::uikit');
        ...
	    }
	}

Done! Now you have it!

Happy Coding!

About

Laravel Paginator template for the UIKit Library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published