PHP code example of dragon-code / pretty-routes

1. Go to this page and download the library: Download dragon-code/pretty-routes 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/ */

    

dragon-code / pretty-routes example snippets


if (env('APP_ENV') !== 'production') {
    $app->register(\PrettyRoutes\ServiceProvider::class);
    $app->configure('pretty-routes');
}

return [
    // ...

    'web_middleware' => null,
    'api_middleware' => null,

    // ...
];
bash
php artisan vendor:publish --provider="PrettyRoutes\ServiceProvider"