mirror of
https://github.com/brunofontes/shareit.git
synced 2025-11-15 07:50:54 -03:00
Including Item and Product migration, controllers and models
This commit is contained in:
23
app/Http/Controllers/ProductController.php
Normal file
23
app/Http/Controllers/ProductController.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user