Route::group(['prefix' => 'hello'], function () { Route::group(['prefix' => 'world'], function () { Route::get('/', function () { return 'hello world'; }); }); });
So now you can access the route by entering "/hello/world" and get the "hello world" string back as response.
Leave a reply