I developed an application with Laravel also using the Laravel Auth for authentication, the authentication works well on the local server, with no issues at all. I decided to host it online. On the login page, when I input the username and password, it doesn’t even query the DB to know if the credentials are correct or not, it justs returns an error page (419 Page Expired). It’s been 3 days now and I’m getting frustrated. please I need help.
2
Answers
419 Page Expired means you have missed
csrf_token
Check if it is written inside your form tag:
use
@csrf
if notYou can use
@csrf
or{{ csrf_token() }}
.Then ensure
VerifyCsrfToken
MiddlewareI hope it will be work.