mirror of
https://github.com/brunofontes/shareit.git
synced 2024-11-24 04:14:57 +00:00
24 lines
417 B
PHP
24 lines
417 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use Illuminate\Http\Request;
|
||
|
use \App\Product;
|
||
|
|
||
|
class ProductController extends Controller
|
||
|
{
|
||
|
//
|
||
|
public function index()
|
||
|
{
|
||
|
//$product = Product::all();
|
||
|
return view('product');
|
||
|
}
|
||
|
|
||
|
public function show($id)
|
||
|
{
|
||
|
//$productID = Product::find($id);
|
||
|
$productID = $id;
|
||
|
return view('product', compact('productID'));
|
||
|
}
|
||
|
}
|