Question

After deploying my Laravel App on droplet I am getting 302 status code for logging

After successfully uploading my laravel app on droplet I am unable to login into my admin panel. I am getting 302 status code, even I enter wrong credential I dont see any validation. What is the readon behind it ?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello,

You need to make sure that you include the CSRF token to your login form.

Also, another thing that comes to my mind is, does your App URL specified in your .env file match the Droplet IP or the domain name that you are using to access your Laravel app?

Hope that this helps! Regards, Bobby