zacksmash / fortify-ui

Laravel Fortify driven replacement to the Laravel UI package
https://github.com/zacksmash/fortify-ui
MIT License
240 stars 20 forks source link

validateWithBag not found in Fortify Actions #16

Closed seasew closed 3 years ago

seasew commented 3 years ago

Hi, unfortunately Fortify UI is giving me some issues. app/Actions/Fortify/UpdateUserPassword and UpdateUserProfileInformation files call validateWithBag, but for some reason intelephense (VS Code) is marking it as undefined. (see screenshot).

Not really sure why this is happening, as it doesn't seem like this is a common issue. It definitely isn't due to my other code in the project, because even when I created a fresh new Laravel project and installed Fortify UI, it was still giving me the error.

Maybe it's an issue with VS Code? On a related note, in my view files for updating user passwords, error messages {{ $errors }} aren't returned even with invalid inputs. Am I retrieving the errors correctly?

Any help appreciated! Thanks! image

zacksmash commented 3 years ago

I don't believe those issues are related to FortifyUI. I think you're correct in that it's an issue with VS Code/Intelephense.

As for the {{ $errors }}, check out FortifyUIkit. That's how you should be handling errors in that view.