Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Providers;
  4.  
  5. use Illuminate\Support\ServiceProvider;
  6.  
  7. class AppServiceProvider extends ServiceProvider
  8. {
  9. /**
  10. * Bootstrap any application services.
  11. *
  12. * @return void
  13. */
  14. public function boot()
  15. {
  16. $this->bootNaverSocialite();
  17. }
  18.  
  19. /**
  20. * Register any application services.
  21. *
  22. * @return void
  23. */
  24. public function register()
  25. {
  26. //
  27. }
  28.  
  29.  
  30. private function bootNaverSocialite()
  31. {
  32. $socialite = $this->app->make('Laravel\Socialite\Contracts\Factory');
  33. $socialite->extend('naver', function ($app) use ($socialite) {
  34. $config = $app['config']['services.naver'];
  35. return $socialite->buildProvider(App\Services\NaverProvider::class, $config);
  36. });
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement