jorqensen / superkube-pagination
Laravel pagination support for Superkube.css
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
Requires
- php: >=7.4
- illuminate/support: ^8.0|^9.0
Requires (Dev)
- orchestra/testbench: ^7.0
README
Installation
- 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, ];
Publishing views
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
.
Support
This package currently supports the following Laravel versions:
- Laravel 8.x
- Laravel 9.x
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.