From 7e05999e64091b60ff0bce7bc7d5acc5306a10ed Mon Sep 17 00:00:00 2001 From: jedi Date: Thu, 5 Dec 2019 13:07:03 +0100 Subject: [PATCH] fix typos --- app/Http/Controllers/ItemController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/ItemController.php b/app/Http/Controllers/ItemController.php index 37e8246..2b4ad96 100644 --- a/app/Http/Controllers/ItemController.php +++ b/app/Http/Controllers/ItemController.php @@ -18,14 +18,14 @@ class ItemController extends Controller { $eid = Event::where('slug','=',$event)->first()->eid; return response()->json(Item::where('eid','=',$eid) - ->join('containers','item.cid','=','container.cid') - ->leftJoin('files','item.iid','=','files.iid') + ->join('containers','items.cid','=','container.cid') + ->leftJoin('files','items.iid','=','files.iid') ->get()); } public function searchByEvent($event, $query) { - return showByEvent($event); //TODO actually search + return $this->showByEvent($event); //TODO actually search } public function showOneItem($event, $id)