Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fhsinchy/deb8604822b3582a2dd01c0a48d9ce40 to your computer and use it in GitHub Desktop.
Save fhsinchy/deb8604822b3582a2dd01c0a48d9ce40 to your computer and use it in GitHub Desktop.
<?php
namespace App\Providers;
// ...
class AuthServiceProvider extends ServiceProvider
{
// ...
public function boot()
{
// ...
Passport::tokensExpireIn(now()->addDays(15));
Passport::refreshTokensExpireIn(now()->addDays(30));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment