Route::get('login/github/callback', 'Auth\LoginController@ handleProviderCallback'); This is useful when adding social authentication to an API:.