Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kinsflow's avatar

getting “Forbidden You don't have permission to access this resource. ” for a particular route

I have just joined a project team, so the project involved has a /admin route that keeps giving the error

Forbidden
You don't have permission to access this resource.

yet, if I rename the route to something like /admi or any other thing, it just works fine..

Route::middleware('web')->prefix('admin')->group(function() {
...
}

please what do you think could be wrong with the /admin as a route name ?

0 likes
1 reply
kinsflow's avatar

Hi all figured it out already...

i realized I have a /admin folder under my root public folder

and that is where the conflict is coming from

1 like

Please or to participate in this conversation.