PHPackages                             michaloravec/laravel-paginateroute - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. michaloravec/laravel-paginateroute

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

michaloravec/laravel-paginateroute
==================================

Laravel outer extension to easily use laravel's paginator without the query string

v1.0.2(2y ago)1813.8k↓28.9%2[2 issues](https://github.com/michaloravec/laravel-paginateroute/issues)MITPHPPHP &gt;=5.4.0

Since Feb 3Pushed 2y ago2 watchersCompare

[ Source](https://github.com/michaloravec/laravel-paginateroute)[ Packagist](https://packagist.org/packages/michaloravec/laravel-paginateroute)[ Docs](https://github.com/michaloravec/laravel-paginateroute)[ RSS](/packages/michaloravec-laravel-paginateroute/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

Laravel Paginate Route
======================

[](#laravel-paginate-route)

This package is inspired by the original [Laravel Paginate Route](https://github.com/spatie/laravel-paginateroute).

This package adds the `paginate` route method to support pagination via custom routes instead of query strings. This also allows for easily translatable pagination routes ex. (normal) `/news/page/2`, `/novinky/stranka/2` or (dash) `/news/page-2`, `/novinky/stranka-2`. It is also possible to remove the word "page" from the URL ex. (simple) `/news/2`

Installation
------------

[](#installation)

Via Composer

```
$ composer require michaloravec/laravel-paginateroute
```

The package will automatically register itself.

You can publish the config-file with:

```
php artisan vendor:publish --provider=MichalOravec\PaginateRoute\PaginateRouteServiceProvider --tag="config"
```

This is the contents of the published config file:

```
