Commit 5c30c98d authored by Taylor Otwell's avatar Taylor Otwell

just use web group by default

parent 1d5e88d0
......@@ -11,10 +11,6 @@
|
*/
Route::group(['middleware' => ['web']], function () {
Route::get('/', function () {
Route::get('/', function () {
return view('welcome');
});
});
......@@ -8,7 +8,7 @@ use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvi
class RouteServiceProvider extends ServiceProvider
{
/**
* This namespace is applied to the controller routes in your routes file.
* This namespace is applied to your controller routes.
*
* In addition, it is set as the URL generator's root namespace.
*
......@@ -37,7 +37,22 @@ class RouteServiceProvider extends ServiceProvider
*/
public function map(Router $router)
{
$router->group(['namespace' => $this->namespace], function ($router) {
$this->mapWebRoutes($router);
//
}
/**
* Define the "web" routes for the application.
*
* @param \Illuminate\Routing\Router $router
* @return void
*/
protected function mapWebRoutes(Router $router)
{
$router->group([
'namespace' => $this->namespace, 'middleware' => 'web'
], function ($router) {
require app_path('Http/routes.php');
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment