Authentication & Authorization
Open
Example from the ReviewMyCodes team
Laravel form shows "419 Page Expired" on submit
Description
A simple contact form in my Laravel app always shows 419 Page Expired after I click Send. GET pages work fine.
— This is an example problem from the ReviewMyCodes team, showing how a good question looks. Real community questions appear alongside it.
Expected
Submitting the form should save the message and redirect.
Actual
419 | Page Expired
Steps to reproduce
- Open /contact
- Fill in the form
- Click Send
Code
php
<form method="POST" action="/contact">
<input name="email" type="email">
<textarea name="message"></textarea>
<button type="submit">Send</button>
</form>