app/Http/Requests/DrawRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'game' => [
                'required',
                'integer',
                new MustNotHaveAWinner($this->game),
                new MustBeUsersTurn($this->game, $this->user()),
                new GameMustHaveTilesInPool($this->game)
            ]
        ];
    }
public function rules ( ) { return [ 'game' => [ 'required' , 'integer' , new MustNotHaveAWinner ( $ this -> game ) , new MustBeUsersTurn ( $ this -> game , $ this -> user ( ) ) , new GameMustHaveTilesInPool ( $ this -> game ) ] ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .