March 1, 2018
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.
© 2023 [maxico.dev] — All rights reserved.