Created
June 24, 2021 20:24
-
-
Save fhsinchy/deb8604822b3582a2dd01c0a48d9ce40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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