/**
  * Updates the competition
  *
  * @param $id
  * @param Request $request
  * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
  */
 public function update($id, CompetitionFormRequest $request)
 {
     //get the event
     $competition = Competition::findOrFail($id);
     //update the event
     $competition->update($request->all());
     //redirect
     //return redirect(action('EventsController@admin', $request->input('event')));
     return Redirect::back()->with(['tabName' => 'competitions']);
 }
 public function update(CompetitionFormRequest $request, $id)
 {
     $competition = Competition::findOrFail($id);
     $competition->update($request->all());
     return redirect('/admin/competitions')->with('status', 'Verseny adatai módosítva');
 }