So for normal mvc application I have to redirect to other page and then do my stuff there like updating the user
keep Modal created using alpine js innormal laravel application opend in case of validation error of success
hi i have a Modal that i made and i am using Alpine.js in showing and hidding it , i am not using livewire insted i am using the normal mvc laravel application , how can i keep this modal opend when i made a request like update , this modal is for updating user data and it includes form for updating user data , i want to know also is that possible in normal mvc application that dose not use API , included in my post a link that contains the code can any one help
At some point in your Alpine, you perhaps have a boolean that determines if the modal should be shown or not.
You then perhaps have a button that changes that value to true.
Where the show boolean is set to false, you can add some blade if statement that checks if the error bag contains any entries. If there are, initialse the show field to true.
No, no workaround here.
To be clear, a full page reload will occur, and the modal will be closed, but you can open it immediately if there are errors with the validation.
Please or to participate in this conversation.