Giter Site home page Giter Site logo

blade-pagination's Introduction

blade-pagination

Laravel's pagination with Blade templating support.

This package is compatible with Laravel 5.0 and Laravel 5.1 (but if you are using Laravel 5.0 you should update to 5.1 it takes 20 minutes or so)

There is another repository to quicly try/test this package: https://github.com/StydeNet/blade-pagination-tests (it includes some automatic tests with phpunit)

To install through Composer:

1 - Add the following instruction to the "require" object in your composer.json:

"styde/blade-pagination": "5.1.*@dev"

And execute composer update in the console, inside the project's folder.

Or execute composer require styde/blade-pagination:5.1.*@dev in the console, inside the project's folder.

2 - Add the service provider to the config/app.php file of your Laravel app:

'Styde\BladePagination\ServiceProvider'

3 - To change the templates, please execute the following command in the console:

php artisan vendor:publish

4 - Then you can:

Change the theme (if necessary) in config/blade-pagination.php

Change the templates in the resources/views/blade-pagination directory (make sure to edit or add a new template according to the theme specify in config/blade-pagination.php)

Alternatively you can just copy the following code:

<?php

/***
 * Choose from: bootstrap, foundation, materialize
 * or create your own theme inside resources/views/pagination/
 * If you create a theme for a popular CSS framework
 * Please submit a pull request to: https://github.com/styde/blade-pagination
 * Or send me the template to [email protected]
 */
return array(
    'theme' => 'bootstrap'
);

Paste it in a new file: config/blade-pagination.php

And change the default's theme name to materialize, foundation or create your own theme.

blade-pagination's People

Contributors

sileence avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.