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?
Very difficult to say.
Are you able to visit any URI in the project; or is this issue isolated to a particular URI?
@tykus none. always this error.
@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
@johnny34 so there are only two routes (for a Socialite provider)?
In this case is problem with your routes, try this
php artisan route:list
Problem is in web.php
@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 sign in or create an account to participate in this conversation.