"required|integer", "first_name"=>"required|string", "last_name"=>"required|string", 'email'=>['required', 'email','unique:users,email'], 'password'=>'required|min:8', 'birth_date'=>'required|date_format:m/d/Y|before:18 years ago|after:-150 years', // 'full_ssn'=>'required|min:9|max:11', 'full_ssn'=>'required', 'street_no'=>'required|string|max:5|regex:'.$this->street_validation_rule, 'street_name'=>'required|max:50|regex:'.$this->street_validation_rule, 'city'=>'required|string|regex:'.$this->script_validation_rule, 'state'=>'required|string|regex:'.$this->script_validation_rule, 'zip_code'=>'required|string|regex:'.$this->script_validation_rule, 'ssn'=>'required', 'amount'=>'required', 'phone'=>'required|string|regex:'.$this->script_validation_rule, ]; } public function messages(): array { return [ 'street_name.max' => 'The street name may not be greater than 50 characters.', 'street_name.regex' => 'The street name may not be special characters.', 'password.min' => 'Password must be 8 characters', 'password.regex' => 'Password must be 8 characters and include a capital, lowercase, number and symbol', 'birth_date.date_format' => 'Birth Date must be mm/dd/yyyy format', ]; } }