fix item delete endpoint
This commit is contained in:
parent
dcc9e87dad
commit
ecc1b28801
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class ItemController extends Controller
|
|||
public function delete($event, $id)
|
||||
{
|
||||
$eid = Event::where('slug','=',$event)->first()->eid;
|
||||
Item::findOrFail($id)->delete();
|
||||
Item::where('eid', $eid)->where('item_uid', $id)->first()->delete();
|
||||
return response()->json(array("satus"=>'Deleted Successfully'), 200);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue