app/Http/Controllers/Auth/RegisterController.php
/**
     * Get a validator for an incoming registration request.
     *
     * @param  array  $data
     * @return \Illuminate\Contracts\Validation\Validator
     */
Get a validator for an incoming registration request.
@param  array  $data
@return \Illuminate\Contracts\Validation\Validator
Get a validator for an incoming registration request . @param array $data @return \ Illuminate \ Contracts \ Validation \ Validator
protected function validator(array $data)
    {
        return Validator::make($data, [
            'UserName' => 'required|string|unique:users',
            'email'=>'required|string|email|unique:users',
            'ConfirmEmail'=>'required|same:email',
            'Country'=>'required',
            'Gender'=>'required',
            'DOB_day'=>'required',
            'DOB_month'=>'required',
            'DOB_year'=>'required',
            'RegistrationReason'=>'required',
            'HearAboutUs'=>'required',
            'Accept'=>'required',
            'password'=>'required|min:8',
            'confirm_password' => 'required|same:password',
        ]);
    }
protected function validator ( array $ data ) { return Validator :: make ( $ data , [ 'UserName' => 'required|string|unique:users' , 'email' => 'required|string|email|unique:users' , 'ConfirmEmail' => 'required|same:email' , 'Country' => 'required' , 'Gender' => 'required' , 'DOB_day' => 'required' , 'DOB_month' => 'required' , 'DOB_year' => 'required' , 'RegistrationReason' => 'required' , 'HearAboutUs' => 'required' , 'Accept' => 'required' , 'password' => 'required|min:8' , 'confirm_password' => 'required|same:password' , ] ) ; }
Get a validator for an incoming registration request.
Get a validator for an incoming registration request .