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');
@ -41,4 +41,4 @@ Auth::routes(['verify' => true]);
Route::get('/home', 'HomeController@index')->name('home')->middleware('auth');
Route::get('/help', function () {
return view('help');
});
});