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

scotchegg's avatar

Laravel 9.5 API Routes prefix gives 404 page - Issue and solution

I lost a few hours scratching my head why #Laravel 9.5 was not loading api/v1 route group URLs ,it gave me 404 pages.

Not sure if this is a feature or error, but the RouteServiceProvider.php api prefix was "Api" not the usual lowercase "api" ? ( same for filename call routes/Api.php), Changed this and it works.

Hope it helps someone.

0 likes
1 reply

Please or to participate in this conversation.