mirror of
https://github.com/brunofontes/shareit.git
synced 2025-11-15 07:50:54 -03:00
Including Items and Products views and controllers
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user