Including Items and Products views and controllers

This commit is contained in:
2018-09-10 01:23:32 -03:00
parent 112d3dc44e
commit 25cff75c48
9 changed files with 144 additions and 14 deletions

View File

@@ -17,7 +17,7 @@ class ItemController extends Controller
public function show($id)
{
$item = Item::find($id);
$item = Item::where([['id', $id], ['userID', \Auth::id()]]);
return view('item', compact('item'));
}
}