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

johnny34's avatar

Laravel 5.4

Hello, i have this "NotFoundHttpException in RouteCollection.php line 161" error which no matter what i try it doesn't work. I've tried Xampp, Laragon, Wamp, after many hours i managed to get Vagrant + Homestead working. Edit the env, used different php versions, htaccess's, php artisan serve...Is there anything else i can do or assume it's a broken project?

0 likes
7 replies
tykus's avatar

Very difficult to say.

Are you able to visit any URI in the project; or is this issue isolated to a particular URI?

johnny34's avatar

@tykus web php Route::group(['middleware' => ['auth.passport', 'auth:api']], function($router) { Route::post('login/strava', 'StravaLoginController@redirectToProvider'); Route::get('login/strava/callback', 'StravaLoginController@handleProviderCallback'); }); and Route:list

| | POST | login/strava | | App\Http\Controllers\StravaLoginController@redirectToProvider | web,auth.passport,auth:api | | | GET|HEAD | login/strava/callback | | App\Http\Controllers\StravaLoginController@handleProviderCallback | web,auth.passport,auth:api

iachimovschiDanu's avatar

In this case is problem with your routes, try this

php artisan route:list

Problem is in web.php

2 likes
johnny34's avatar

@tykus web.php Route::group(['middleware' => ['auth.passport', 'auth:api']], function($router) { Route::post('login/strava', 'StravaLoginController@redirectToProvider'); Route::get('login/strava/callback', 'StravaLoginController@handleProviderCallback'); });

router list

| | POST | login/strava | | App\Http\Controllers\StravaLoginController@redirectToProvider | web,auth.passport,auth:api | | | GET|HEAD | login/strava/callback | | App\Http\Controllers\StravaLoginController@handleProviderCallback | web,auth.passport,auth:api |

Please or to participate in this conversation.