コード例 #1
3
 /**
  * Register any authentication / authorization services.
  *
  * @return void
  */
 public function boot()
 {
     $this->registerPolicies();
     Passport::routes();
     Passport::tokensExpireIn(Carbon::now()->addDays(1));
     Passport::refreshTokensExpireIn(Carbon::now()->addDays(2));
     Passport::pruneRevokedTokens();
 }
コード例 #2
-1
ファイル: AuthServiceProvider.php プロジェクト: ppy/osu-web
 /**
  * Register any authentication / authorization services.
  *
  * @return void
  */
 public function boot()
 {
     Passport::ignoreMigrations();
     Passport::tokensExpireIn(Carbon::now()->addDays(1));
     Passport::refreshTokensExpireIn(Carbon::now()->addMonths(3));
     if ($path = config('services.passport.path')) {
         Passport::keyPath($path);
     }
     Passport::routes();
 }