Form Post In Modal Results In 419 Error

When I try to do a form post from a livewire modal, I get 419 errors. This seems to be due to an invalid CSRF token in the form, as LiveWire made a request in order to show the modal. I have not found a way to get around this.

Any suggestions?

Did you catch Laracon Online today? Caleb showed how to do this using Alpine to manage the state and interactivity of the modal and Livewire to handle the server communication.

1 Like

Yes, @calebporzio’s demo of Alpine was just what I needed. Thanks for following up! :slight_smile: