I don\'t get what I\'m doing wrong. I can\'t set token expiration time.
The Passport docs seem to answer this question
https://laravel.com/docs/5.6/passport#token-lifetimes
In the boot method of AuthServiceProvider call Passport::tokenExpiresIn()
public function boot()
{
$this->registerPolicies();
Passport::routes();
Passport::tokensExpireIn(now()->addDays(15));
Passport::refreshTokensExpireIn(now()->addDays(30));
}