I am Using Laravel 5.4 Passport Authentication. I have a problem to set API token expire date for 30 days. I have tried given code in Laravel documentation but it's not working. In the database, it's showing one year default token expiration date.
I have used
public function boot(){
$this->registerPolicies();
Passport::routes();
Passport::tokensExpireIn(Carbon::now()->addDays(30));
}
if there is any solution please suggest me.
Thanks