skip to Main Content

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


  1. 419 Page Expired means you have missed csrf_token

    Check if it is written inside your form tag:

    use @csrf if not

    Login or Signup to reply.
  2. You can use @csrf or {{ csrf_token() }}.
    Then ensure VerifyCsrfToken Middleware

    protected $except = [
    ‘*’,
    ];

    I hope it will be work.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search