diff --git a/app/Http/Controllers/ItemController.php b/app/Http/Controllers/ItemController.php index 2b4ad96..2a38fc2 100644 --- a/app/Http/Controllers/ItemController.php +++ b/app/Http/Controllers/ItemController.php @@ -18,8 +18,9 @@ class ItemController extends Controller { $eid = Event::where('slug','=',$event)->first()->eid; return response()->json(Item::where('eid','=',$eid) - ->join('containers','items.cid','=','container.cid') + ->join('containers','items.cid','=','containers.cid') ->leftJoin('files','items.iid','=','files.iid') + ->select('items.*','files.hash as file', 'containers.name as container') ->get()); }