播客托管 / 社交提供者
Laravel Socialite 的播客 OAuth2 提供者
    dev-master
    2022-07-05 10:57 UTC
Requires
- php: ^5.6 || ^7.0 || ^8.0
- ext-json: *
- socialiteproviders/manager: ~4.0
This package is auto-updated.
Last update: 2024-09-05 16:10:28 UTC
README
Laravel Socialite 提供者,用于登录播客服务(www.podcaster.de)
将此应用程序添加到 Providers/EventServiceProvider.php
private function bootPodcasterSocialite()
{
    $socialite = $this->app->make('Laravel\Socialite\Contracts\Factory');
    $socialite->extend(
        'podcaster',
        function ($app) use ($socialite) {
            $config = $app['config']['services.podcaster'];
            return $socialite->buildProvider(\podcasthosting\podcaster\socialiteprovider\Provider::class, $config);
        }
    );
}
并在 boot() 方法中调用它。
/**
 * Register any events for your application.
 *
 * @return void
 */
public function boot()
{
    $this->bootPodcasterSocialite();
    parent::boot();
}