PHP code example of amhol / extendable-routing
1. Go to this page and download the library: Download amhol/extendable-routing 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/ */
amhol / extendable-routing example snippets
/*
|--------------------------------------------------------------------------
| Application Route Extensions
|--------------------------------------------------------------------------
|
| Here is where you can extend the router with your own methods.
| It's a breeze. Simply tell the Laravel Router the methods it should
| respond to and give it the Closure to execute when that method is
| called.
|
*/
// Route::extend('api', function($resources, $actions = ['index', 'show', 'update', 'create']) {
// // my custom extension
// // Route::get($resources, ...);
// });