PHP code example of clarence / laravel-default-routes
1. Go to this page and download the library: Download clarence/laravel-default-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/ */
clarence / laravel-default-routes example snippets
// config/app.php
return [
//...
'providers' => [
//...
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
Clarence\LaravelDefaultRoutes\DefaultRouteProvider::class, // add DefaultRouteProvider below the RouteServiceProvider
//...
],
//...
];