From 02f303825e1baaef1a99b090330d50426d8a795e Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Wed, 19 Sep 2018 20:41:36 -0300 Subject: [PATCH] Product/index view is now only allowed to Verified users --- routes/web.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/web.php b/routes/web.php index f063a55..5df9f98 100644 --- a/routes/web.php +++ b/routes/web.php @@ -15,7 +15,7 @@ Route::get('/', function () { return view('welcome'); }); -Route::get('/product', 'ProductController@index')->middleware('auth'); +Route::get('/product', 'ProductController@index')->middleware('verified'); Route::get('/product/{product}', 'ProductController@show')->middleware('verified'); Route::post('/product', 'ProductController@store')->middleware('verified'); Route::patch('/product', 'ProductController@patch')->middleware('verified'); @@ -41,4 +41,4 @@ Auth::routes(['verify' => true]); Route::get('/home', 'HomeController@index')->name('home')->middleware('auth'); Route::get('/help', function () { return view('help'); -}); \ No newline at end of file +});