fix typos

This commit is contained in:
j3d1 2019-12-05 13:07:03 +01:00
parent 6f7dbddf92
commit 7e05999e64

View file

@ -18,14 +18,14 @@ class ItemController extends Controller
{ {
$eid = Event::where('slug','=',$event)->first()->eid; $eid = Event::where('slug','=',$event)->first()->eid;
return response()->json(Item::where('eid','=',$eid) return response()->json(Item::where('eid','=',$eid)
->join('containers','item.cid','=','container.cid') ->join('containers','items.cid','=','container.cid')
->leftJoin('files','item.iid','=','files.iid') ->leftJoin('files','items.iid','=','files.iid')
->get()); ->get());
} }
public function searchByEvent($event, $query) public function searchByEvent($event, $query)
{ {
return showByEvent($event); //TODO actually search return $this->showByEvent($event); //TODO actually search
} }
public function showOneItem($event, $id) public function showOneItem($event, $id)