PHP code example of tibian / route-organizer
1. Go to this page and download the library: Download tibian/route-organizer 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/ */
tibian / route-organizer example snippets
new RouteOrganizer('routes/web');
new RouteOrganizer('routes/api');
protected function mapWebRoutes()
{
Route::group([
'middleware' => 'web',
'namespace' => $this->namespace,
], function ($router) {
new RouteOrganizer('routes/web'); // new Web Routes for the Application