Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Providers;
- use Illuminate\Support\ServiceProvider;
- class AppServiceProvider extends ServiceProvider
- {
- /**
- * Bootstrap any application services.
- *
- * @return void
- */
- public function boot()
- {
- $this->bootNaverSocialite();
- }
- /**
- * Register any application services.
- *
- * @return void
- */
- public function register()
- {
- //
- }
- private function bootNaverSocialite()
- {
- $socialite = $this->app->make('Laravel\Socialite\Contracts\Factory');
- $socialite->extend('naver', function ($app) use ($socialite) {
- $config = $app['config']['services.naver'];
- return $socialite->buildProvider(App\Services\NaverProvider::class, $config);
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement