/**
  * Register any application authentication / authorization services.
  *
  * @param  \Illuminate\Contracts\Auth\Access\Gate  $gate
  * @return void
  */
 public function boot(GateContract $gate)
 {
     $this->registerPolicies($gate);
     Auth::extend('api_token', function ($app, $name, array $config) {
         return new ApiTokenGuard(Auth::createUserProvider($config['provider']), $this->app['request']);
     });
 }
 /**
  * Perform post-registration booting of services.
  *
  * @return void
  */
 public function boot()
 {
     Auth::extend('iget-token', function ($app, $name, array $config) {
         $guard = new TokenGuard(Auth::createUserProvider($config['provider']), $app['request']);
         $app->refresh('request', $guard, 'setRequest');
         return $guard;
     });
 }
 /**
  * Perform post-registration booting of services.
  *
  * @return void
  */
 public function boot(GateContract $gate)
 {
     $this->registerPolicies($gate);
     Auth::extend('auth-token', function ($app, $name, array $config) {
         return new TokenGuard(Auth::createUserProvider($config['provider']), $app['request']);
     });
     $this->publishes([__DIR__ . '/../config/api.php' => config_path('api.php')], 'config');
     $this->publishes([__DIR__ . '/../database/migrations/' => database_path('migrations')], 'migrations');
     if (!$this->app->routesAreCached()) {
         require __DIR__ . '/Http/routes.php';
     }
 }
 /**
  * Perform post-registration booting of services.
  *
  * @return void
  */
 public function boot()
 {
     Auth::extend('oauth', function ($app, $name, array $config) {
         return new OAuthGuard(Auth::createUserProvider($config['provider']), $this->app['request']);
     });
 }