/** * Delete an existing event. * * @param int $id * * @return \Illuminate\Http\Response */ public function destroy($id) { $event = EventRepository::find($id); $this->checkEvent($event); $event->delete(); return Redirect::route('events.index')->with('success', 'Your event has been deleted successfully.'); }
/** * Delete an existing event. * * @param int $id * * @return \Illuminate\Http\Response */ public function destroy($id) { $event = EventRepository::find($id); $this->checkEvent($event); $event->delete(); return Redirect::route('events.index')->with('success', trans('messages.event.delete_success')); }