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, [
        'email' => 'required|email|max:255|unique:usuarios',
        'nickname' => 'required|max:255|unique:usuarios',
        'password' => 'required|min:8|confirmed',
        'nombre' => 'required|string|max:255',
        'app' => 'required|string|max:255',
        'apm' => 'required|string|max:255',
        'telefono' => 'required|string|max:12',
        'calle' => 'required|string|max:255',
        'num_int' => 'string|max:4',
        'num_ext' => 'required|string|max:4',
        'colonia' => 'required|string|max:255',
        'cp' => 'required|integer',
        ]);
    }
protected function validator ( array $ data ) { return Validator :: make ( $ data , [ 'email' => 'required|email|max:255|unique:usuarios' , 'nickname' => 'required|max:255|unique:usuarios' , 'password' => 'required|min:8|confirmed' , 'nombre' => 'required|string|max:255' , 'app' => 'required|string|max:255' , 'apm' => 'required|string|max:255' , 'telefono' => 'required|string|max:12' , 'calle' => 'required|string|max:255' , 'num_int' => 'string|max:4' , 'num_ext' => 'required|string|max:4' , 'colonia' => 'required|string|max:255' , 'cp' => 'required|integer' , ] ) ; }
Get a validator for an incoming registration request.
Get a validator for an incoming registration request .