The view is non-existent as it's getting returned as a JSON object. This is the controller method:
public function register() {
$user = new User;
if( $user->save() ) {
return Response::json($user, 200);
}
else {
return Response::json( $user->errors()->all(), 500 );
}
}
So I finally figured it out - text inputs of type email
send an empty value if they aren't formatted properly, which is why an improperly formatted email field would never even reach the email validation, as it was always coming in empty. Something to watch out for :)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community