mirror of
https://github.com/brunofontes/shareit.git
synced 2024-11-24 04:14:57 +00:00
26 lines
706 B
PHP
26 lines
706 B
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
*/
|
|
|
|
Route::get('/', function () {
|
|
$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');
|
|
}); |