public function getCancelEvent($id) { try { $event = GameEvent::where('id', intval($id))->firstOrFail(); Attendee::where('game_id', $event->id)->where('user_id', $this->user->id)->delete(); return \Redirect::action('CalendarController@getEvent', [$event->id])->with('flash_message', ['type' => 'success', 'header' => 'You have cancelled your RSVP.']); } catch (ModelNotFoundException $e) { app()->abort(404, 'Event could not be found.'); } }