Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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