Including Item and Product migration, controllers and models

This commit is contained in:
2018-09-09 00:26:57 -03:00
parent 0eac52c440
commit fd3e4a67cf
10 changed files with 160 additions and 9 deletions

View 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'));
}
}