group(function() { Route::controller(PublicUserController::class)->prefix('/users')->group(function() { Route::put('/register', 'register'); Route::post('/login', 'login'); Route::post('/reset', 'reset'); }); Route::controller(PrivateUserController::class)->prefix('/users/private')->group(function () { Route::get('/list', 'list'); Route::get('/get/{id}', 'get')->whereUuid('id'); }); }); Route::get('/session', function() { exit(print_r(session()->all(), true)); });