mirror of
https://github.com/brunofontes/shareit.git
synced 2024-11-23 20:10:52 +00:00
Product/index view is now only allowed to Verified users
This commit is contained in:
parent
8033a9aeb2
commit
02f303825e
@ -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');
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user