diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php
index fccb059..aff479b 100644
--- a/resources/views/welcome.blade.php
+++ b/resources/views/welcome.blade.php
@@ -80,6 +80,7 @@
Share It!
+ Hello, {{$name}}!
Documentation
diff --git a/routes/web.php b/routes/web.php
index 810aa34..1e1318c 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -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');
+});
\ No newline at end of file