You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using this package extensively in all my projects. And that is until I learnt about HTMX and decided to try it.
The major problem I am facing right now is the form validation.
in a regular request, the laravel vlaidation on failure return back with the error bag. In HTMX, i have to return that render that returned view with the error bag and return it.
I have been trying to use,
publicfunctiongetValidationFailure(): void
{
//
}
this getValidationFailure return a void and I cant return a view directly from this.
Does anyone has any idea how to use this package with HTMX.
I know i can use withAttributes trait and manually run the validator. But I am so much sed to the different functions of a route in seperate function now that I don't want to run a manual valiator/.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have been using this package extensively in all my projects. And that is until I learnt about HTMX and decided to try it.
The major problem I am facing right now is the form validation.
in a regular request, the laravel vlaidation on failure return back with the error bag. In HTMX, i have to return that render that returned view with the error bag and return it.
I have been trying to use,
this getValidationFailure return a void and I cant return a view directly from this.
Does anyone has any idea how to use this package with HTMX.
I know i can use
withAttributes
trait and manually run the validator. But I am so much sed to the different functions of a route in seperate function now that I don't want to run a manual valiator/.Beta Was this translation helpful? Give feedback.
All reactions