From 8ee5bb0f4d4ad976032e6c8128bf94f2fbc406c1 Mon Sep 17 00:00:00 2001 From: weichien00 Date: Mon, 28 Jun 2021 20:06:09 +0800 Subject: [PATCH] update: add valid.token to use in middleware on route with user prefix. --- routes/account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/account.php b/routes/account.php index eb5b6301..c5541153 100644 --- a/routes/account.php +++ b/routes/account.php @@ -30,7 +30,7 @@ Route::group(['prefix' => 'account', 'namespace' => 'Accounts', 'as' => 'account Route::post('/verification/resend', 'ResendEmailVerificationController@resend')->name('verification.resend'); }); - Route::group(['prefix' => 'user', 'as' => 'user.'], function () { + Route::group(['middleware' => 'valid.token', 'prefix' => 'user', 'as' => 'user.'], function () { Route::post('/show', 'FetchUserController@fetch')->name('show'); Route::get('/list', 'ListUsersController@list')->name('list'); Route::put('/update/{id}', 'UpdateUserController@update')->name('update');