catlabinteractive / laravel-catlab-accounts
为Ll猫实验室身份验证API提供的Oauth-Openid客户端
v4.0.0
2022-03-29 10:10 UTC
Requires
- socialiteproviders/manager: ~4.1.0
README
安装
- 将提供者添加到您的应用配置中
\CatLab\Accounts\Client\CatLabAccountsServiceProvider::class,
\SocialiteProviders\Manager\ServiceProvider::class,
- 将别名添加到配置中
'Socialite' => Laravel\Socialite\Facades\Socialite::class,
- 将路由添加到您的(Web)路由中
\CatLab\Accounts\Client\Controllers\LoginController::setRoutes();
- 将事件提供者服务添加到EventServiceProvider中
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
CatLabExtendSocialite::class
],
];