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;
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)