/**
  * Remove the specified resource from storage.
  *
  * @param  \Illuminate\Http\Request
  * @param  \App\Event $event
  * @return \Illuminate\Http\Response
  */
 public function destroy(Request $request, Event $event)
 {
     if ($request->ajax()) {
         $event->delete();
         return;
     }
     return redirect(action('EventsController@index'));
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  Event  $event
  * @return Response
  */
 public function destroy(Event $event)
 {
     $eventStatus = $event->delete();
     if ($eventStatus) {
         \Session::flash('flash_message_event_destroyed', 'Tu evento ha sido borrado');
         return redirect('events');
     }
     \Session::flash('flash_message_event_destroyFailed', 'Tu evento no ha podido ser eliminado');
     return redirect('events');
 }
 public function destroy(Event $event)
 {
     $event->delete();
     $this->respond($event);
 }
Exemple #4
0
 public function delete(Event $event)
 {
     $event->delete();
     Flash::success(trans('admin\\messages.settleDeleted'));
     return redirect(route('admin.settle.index'));
 }
Exemple #5
0
 /**
  * Remove the specified resource from storage.
  *
  * @param int $id
  *
  * @return \Illuminate\Http\Response
  */
 public function destroy(City $city, Event $event)
 {
     $event->delete();
     return Redirect::route('{city}.events.index', $city->iata)->with('message', 'Event Removed');
 }