Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

jorqensen/superkube-pagination

Repository files navigation

banner

Installation

  1. Require the package via your terminal.
$ composer require jorqensen/superkube-pagination
  1. 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');
    }
}
  1. 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.

About

Laravel pagination for Superkube CSS

Resources

License

Stars

Watchers

Forks

Packages

No packages published