예제 #1
0
 /**
  * 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.');
 }
예제 #2
0
 /**
  * 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'));
 }