예제 #1
0
 /**
  * @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');
 }
예제 #2
0
 /**
  * Get the validation rules that apply to the request.
  *
  * @return array
  */
 public function rules()
 {
     return array_merge(parent::rules(), ['inactive' => 'required']);
 }