PHP code example of sleeping-owl / route-priority
1. Go to this page and download the library: Download sleeping-owl/route-priority library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sleeping-owl / route-priority example snippets
Route::get('my-route', ['uses' => 'MyController@myAction'])->setPriority(100);
Route::get('/user/{wildcard}', …);
Route::get('/user/settings', …);
Route::get('/user/{wildcard}', …)->setPriority(0);
Route::get('/user/settings', …);