- Require the package via your terminal.
$ composer require jorqensen/superkube-pagination
- Set the pagination views in your
AppServiceProvider
.
<?php
namespace App\Providers;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Paginator::defaultView('superkube-pagination::default');
Paginator::defaultSimpleView('superkube-pagination::simple');
}
}
- If you're not using Laravel's auto package discovery, make sure you manually set the service provider in your
config/app.php
<?php
return [
/*
* Package Service Providers...
*/
Jorqensen\SuperkubePagination\SuperkubePaginationServiceProvider::class,
];
You can publish the pagination views using Artisan's venor:publish
command.
$ php artisan vendor:publish --tag="superkube-pagination"
The views will be published to /resources/views/vendor/superkube-pagination
.
This package currently supports the following Laravel versions:
- Laravel 8.x
- Laravel 9.x
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.