app/Http/Controllers/Auth/RegisterController.php
/**
     * Get a validator for an incoming registration request.
     *
     * @return \Illuminate\Contracts\Validation\Validator
     */
Get a validator for an incoming registration request.
@return \Illuminate\Contracts\Validation\Validator
Get a validator for an incoming registration request . @return \ Illuminate \ Contracts \ Validation \ Validator
protected function validator(array $data)
    {
        return Validator::make($data, [
            'name'     => ['required', 'string', 'max:255'],
            'email'    => ['required', 'string', 'email', 'max:255', 'unique:users'],
            'number'    => ['required', 'min:12', 'numeric'],
            'idtype'   => ['required'],
            'noid'     => ['required', 'min:16'],
            'alamat'   => ['required'],
            'dob'      => ['required'],
            'jk'       => ['required'],
            'password' => ['required', 'string', 'min:8', 'confirmed'],
        ]);
    }
protected function validator ( array $ data ) { return Validator :: make ( $ data , [ 'name' => [ 'required' , 'string' , 'max:255' ] , 'email' => [ 'required' , 'string' , 'email' , 'max:255' , 'unique:users' ] , 'number' => [ 'required' , 'min:12' , 'numeric' ] , 'idtype' => [ 'required' ] , 'noid' => [ 'required' , 'min:16' ] , 'alamat' => [ 'required' ] , 'dob' => [ 'required' ] , 'jk' => [ 'required' ] , 'password' => [ 'required' , 'string' , 'min:8' , 'confirmed' ] , ] ) ; }
Get a validator for an incoming registration request.
Get a validator for an incoming registration request .