mirror of
https://github.com/brunofontes/shareit.git
synced 2025-11-15 07:50:54 -03:00
Creating the very first routes and views - product and item
This commit is contained in:
@@ -12,5 +12,15 @@
|
||||
*/
|
||||
|
||||
Route::get('/', function () {
|
||||
return view('welcome');
|
||||
$name = 'Bruno';
|
||||
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');
|
||||
});
|
||||
Reference in New Issue
Block a user