PHP code example of uutkukorkmaz / laravel-route-organizer

1. Go to this page and download the library: Download uutkukorkmaz/laravel-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/ */

    

uutkukorkmaz / laravel-route-organizer example snippets


use Uutkukorkmaz\RouteOrganizer\Contracts\RouteContract as RegistersRoute;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\FlightController;

class FlightRoutes implements RegistersRoute {
    
    public static function register(){
        Route::group([
        "prefix" => "flights",
        "as" => "flights.",
        "controller" => FlightController::class],function(){
            // your flight routes...
        });
    }    
    
}

use Uutkukorkmaz\RouteOrganizer\Facades\Organizer;

Organizer::register([
    App\Routes\FlightRoutes::class,
]);
shell
php artisan make:route FlightRoutes