Middleware groups, define web group, configure routes file.

This commit is contained in:
Taylor Otwell
2015-12-09 11:12:27 -06:00
parent 60d782a1bb
commit 587e514719
2 changed files with 30 additions and 5 deletions

View File

@@ -14,3 +14,18 @@
Route::get('/', function () {
return view('welcome');
});
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/
Route::group(['middleware' => 'web'], function () {
//
});