fix typos
This commit is contained in:
parent
6f7dbddf92
commit
7e05999e64
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue