mirror of
https://github.com/brunofontes/shareit.git
synced 2025-11-15 16:00:54 -03:00
Including Item and Product migration, controllers and models
This commit is contained in:
@@ -16,11 +16,7 @@ Route::get('/', function () {
|
||||
return view('welcome', compact('name'));
|
||||
});
|
||||
|
||||
Route::get('/product/{id}', function () {
|
||||
$productID = DB::table('product')->find($id);
|
||||
return view('product', compact['productID']);
|
||||
});
|
||||
|
||||
Route::get('/item/{id}', function () {
|
||||
return view('item');
|
||||
});
|
||||
Route::get('/product', 'ProductController@index');
|
||||
Route::get('/product/{product}', 'ProductController@show');
|
||||
Route::get('/item', 'ItemController@index');
|
||||
Route::get('/item/{item}', 'ItemController@show');
|
||||
Reference in New Issue
Block a user