Skip to content

Commit d15c978

Browse files
committed
Remove unnecessary 'web' middleware
1 parent 67afde3 commit d15c978

File tree

1 file changed

+19
-22
lines changed

1 file changed

+19
-22
lines changed

quickstart.md

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -137,28 +137,25 @@ For this application, we know we will need at least three routes: a route to dis
137137
use App\Task;
138138
use Illuminate\Http\Request;
139139

140-
Route::group(['middleware' => 'web'], function () {
141-
142-
/**
143-
* Show Task Dashboard
144-
*/
145-
Route::get('/', function () {
146-
//
147-
});
148-
149-
/**
150-
* Add New Task
151-
*/
152-
Route::post('/task', function (Request $request) {
153-
//
154-
});
155-
156-
/**
157-
* Delete Task
158-
*/
159-
Route::delete('/task/{task}', function (Task $task) {
160-
//
161-
});
140+
/**
141+
* Show Task Dashboard
142+
*/
143+
Route::get('/', function () {
144+
//
145+
});
146+
147+
/**
148+
* Add New Task
149+
*/
150+
Route::post('/task', function (Request $request) {
151+
//
152+
});
153+
154+
/**
155+
* Delete Task
156+
*/
157+
Route::delete('/task/{task}', function (Task $task) {
158+
//
162159
});
163160

164161
> **Note**: If your copy of Laravel has a `RouteServiceProvider` that already includes the default routes file within the `web` middleware group, you do not need to manually add the group to your `routes.php` file.

0 commit comments

Comments
 (0)