sbing / alipaysocialite
基于Socialite Providers 进行的支付宝授权登录.
2.0.1
2020-04-28 18:27 UTC
Requires
- php: ^7.1.3
- socialiteproviders/manager: ^3.5
This package is not auto-updated.
Last update: 2025-03-26 17:27:46 UTC
README
介绍
基于Socialite Providers 进行的支付宝授权登录
安装教程
$ composer require sbing/alipaysocialite
配置 config
config/services.php
'alipay' => [
'client_id' => env('ALIPAY_KEY'),
'client_secret' => env('ALIPAY_SECRET'),
'redirect' => env('ALIPAY_REDIRECT_URI'),
],
配置 Provider
app/Providers/EventServiceProvider.php
use Sbing\AliPaySocialite\AliPayExtendSocialite;
use SocialiteProviders\Manager\SocialiteWasCalled;
protected $listen = [
SocialiteWasCalled::class => [
AliPayExtendSocialite::class,
],
];
参考