New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

sleeping-owl/route-priority

Package to add priority to Laravel routes
253 5

Larablocks Analysis

sleeping-owl/route-priority works with Laravel 4 (latest release 1.1.0, Feb 5, 2015), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 4, past end of life
  • No release in the last 12 months (last: Feb 5, 2015)
  • 1 downloads a month (needs 10,000)
  • 5 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Feb 5, 2015.
  • No releases in the last 12 months.
  • First released: Feb 3, 2015.
  • Monthly downloads: 1.
  • 1 open issue on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 30, 2026.

Install
composer require sleeping-owl/route-priority
Latest Version:1.1.0
PHP:>=5.4.0
Laravel:4
License:MIT
Last Updated:Feb 5, 2015
Links: GitHub  ·  Packagist
Maintainer: sleeping-owl

Package to add priority to Laravel routes

Latest Stable Version License

Installation

Add sleeping-owl/route-priority to composer.json.

"sleeping-owl/route-priority": "1.*"

Run composer update to pull down the latest version of the package. Now open up app/config/app.php and add the service provider to your providers array.

'providers' => array(
    'SleepingOwl\RoutePriority\RoutePriorityServiceProvider'
)

That's it. You now have some enhanced functionality available to your routes.

Usage

Now you can change your routes priority:

Route::get('my-route', ['uses' => 'MyController@myAction'])->setPriority(100);

Priority is integer value.

Default Priority

Default priority is 50 - already registered routes count. So if you want higher priority - use values from 50 and above, lower priority - 10 and below.

Example

Route::get('/user/{wildcard}', …);
Route::get('/user/settings', …);

This code will register two routes. With default Laravel behaviour second route will not work. Just add priority to the first route to fix the error:

Route::get('/user/{wildcard}', …)->setPriority(0);
Route::get('/user/settings', …);

Second route now has higher priority and will work.

Support Library

You can donate in BTC: 13k36pym383rEmsBSLyWfT3TxCQMN2Lekd

Package was written by Sleeping Owl for the Laravel framework and is released under the MIT License. See the LICENSE file for details.

Related Packages

sayeed/lumen-route-list

List all registered routes

1,032 4
trexology/laravel-order

Order for Laravel Application.

121 9
rayjun/laravel-order

Order for Laravel Application.

20 12
heropoo/routing

A simple and fast route. Use tree structure storage, fast matching!

5,676 10
yzen.dev/laravel-route-coverage

Laravel route coverage

4,036 21

Version History

Version Released PHP Laravel License
1.1.0 >=5.4.0 4.2.* MIT
1.0.0 >=5.4.0 4.2.* MIT