added a Trait for EveAuth2

eve online service provider 2
eve online socialite provider 2
This commit is contained in:
2019-06-23 06:03:23 -05:00
parent d5032e4fee
commit 90fbcb18ba
3 changed files with 146 additions and 0 deletions
@@ -0,0 +1,26 @@
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class EveOnlineServiceProvider2 extends ServiceProvider {
/**
* Bootstrap any application services
*
* @return void
*/
public function boot() {
$socialite = $this->app->make('Laravel\Socialite\Contracts\Factory');
$socialite->extend(
'eveonline',
function ($app) use ($socialite) {
$config = $app['config']['services.eveonline'];
return $socialite->buildProvider(EveOnlineSocialiteProvider::class, $config);
}
);
}
}
?>