/** * @return mixed */ public function store(TournamentCreateRequest $request, TournamentCreator $tournamentCreator) { $tournament = $tournamentCreator->create(Auth::user(), Session::season(), $request->except('_token', 'eventTypes', 'participantTypes'), $request->get('eventTypes', []), $request->get('participantTypes', [])); return redirect('/admin/tournaments'); }
/** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return array_merge(parent::rules(), ['inactive' => 'required']); }