Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

marncz's avatar

Register form not showing validation errors

Hello everyone,

I just installed a Spark instance, the issue is that register form does not show any validation errors, not inline when input is not filled or validation after the form is sent, what can be the issue? have not changed the generic register blade files.

0 likes
4 replies
marncz's avatar

Laravel's basic validation works on register form, but it does not work with AJAX request on login / register forms. Forms itself work when adding

SYPOMark's avatar

Hi @marncz I'd like to see if I can help.

I'm guessing that you haven't changed any of the other files at all? Do you know if a log file is produced when you attempt to submit an empty register form, or a form that is incomplete?

With kind regards,

Mark

1 like
defayeke's avatar

Me and a colleague have identified that the issue is something to do with a recent change to the way errors are structured, where before it's a simple array of fields, it's now an array with a message and another errors array containing the fields. I'm not sure the best fix for this though. If you inspect your Vue instance and look at $vm.registerForm.errors.has you'll notice that it'll almost never return true.

1 like

Please or to participate in this conversation.