Max Kostinevich

Consulting & Web-Development

How to fix 403 error in Laravel

A quick tip: Having a folder in the /public/ directory with the same name as one of your route names may cause a 403 error.

For example, let's assume you decided to keep all your assets for admin-part in /public/admin/ folder  and you have the following routes in your Laravel application:

  • /admin/ - > 403 error
  • /admin/dashboard -> works fine
  • /admin/users -> works fine
  • etc..

To fix that issue, just rename /admin/ folder you have in your /public/ directory.

Comments? Shoot me a tweet!

Have a project in mind?

Let's talk!

‚úČ Subscribe

Subscribe for newsletter, software development tips and more.