/** * 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(); }
/** * 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(); }