App\Http\Controllers\Backend\EventController::destroy PHP Method

destroy() public method

Remove the specified resource from storage.
public destroy ( integer $id ) : Illuminate\Http\Response
$id integer
return Illuminate\Http\Response
    public function destroy($id)
    {
        $event = $this->repository->find($id);
        $event->delete();
        return redirect()->route('admin.event.index')->withSuccess('event deleted.');
    }