PHP code example of andrey-helldar / pretty-routes
1. Go to this page and download the library: Download andrey-helldar/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/ */
andrey-helldar / 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"