Product/index view is now only allowed to Verified users

This commit is contained in:
Bruno F. Fontes 2018-09-19 20:41:36 -03:00
parent 8033a9aeb2
commit 02f303825e

View File

@ -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');