<?php


/*
|================================================================================
|                             Back-END ROUTES
|================================================================================
*/
Route::prefix('dashboard')->middleware(['dashboard.auth','permission:dashboard_access'])->group(function () {

    foreach (File::allFiles(module_path('$STUDLY_NAME$', 'Routes/Dashboard')) as $file) {
        require($file->getPathname());
    }

});

/*
|================================================================================
|                             FRONT-END ROUTES
|================================================================================
*/
Route::prefix('/')->group(function () {

    foreach (File::allFiles(module_path('$STUDLY_NAME$', 'Routes/FrontEnd')) as $file) {
        require($file->getPathname());
    }

});
