Including Items and Products views and controllers

This commit is contained in:
2018-09-10 01:23:32 -03:00
parent 112d3dc44e
commit 25cff75c48
9 changed files with 144 additions and 14 deletions

View File

@@ -15,10 +15,11 @@ Route::get('/', function () {
return view('welcome');
});
Route::get('/product', 'ProductController@index');
Route::get('/product/{product}', 'ProductController@show');
Route::get('/item', 'ItemController@index');
Route::get('/item/{item}', 'ItemController@show');
Route::get('/product', 'ProductController@index')->middleware('auth');
Route::get('/product/{product}', 'ProductController@show')->middleware('auth');
Route::post('/product', 'ProductController@store')->middleware('auth');
Route::get('/item', 'ItemController@index')->middleware('auth');
Route::get('/item/{item}', 'ItemController@show')->middleware('auth');
Auth::routes();
Route::get('/home', 'HomeController@index')->name('home');
Route::get('/home', 'HomeController@index')->name('home')->middleware('auth');