From: Vincent Vanwaelscappel Date: Thu, 7 Oct 2021 14:49:41 +0000 (+0200) Subject: wip #4765 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d9e1094e228ec0fc85ee5bf9c37a4cec719c0134;p=cubist_socialite.git wip #4765 --- diff --git a/composer.json b/composer.json index 116e794..8001da2 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,7 @@ "extra": { "laravel": { "providers": [ - "Cubist\\Socialite\\SocialiteServiceProvider" + "Cubist\\Socialite\\CubistSocialiteServiceProvider" ] } } diff --git a/routes/socialite.php b/routes/socialite.php index 9b1a735..c1d5a3a 100644 --- a/routes/socialite.php +++ b/routes/socialite.php @@ -1,4 +1,7 @@ name('socialite.redirect'); -Route::get("socialite/callback/{provider}", "SocialiteController@callback")->name('socialite.callback'); \ No newline at end of file + +Route::group(['namespace' => 'Cubist\Socialite\Http\Controllers'], function () { + Route::get("socialite/login", "SocialiteController@login"); + Route::get("socialite/redirect/{provider}", "SocialiteController@redirect")->name('socialite.redirect'); + Route::get("socialite/callback/{provider}", "SocialiteController@callback")->name('socialite.callback'); +}); \ No newline at end of file