Fix the user issue

This commit is contained in:
Julien Nahum 2023-11-01 18:14:01 +01:00
parent e9174238e4
commit dc5a828b8e
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class User extends Authenticatable implements JWTSubject
return $this->hasMany(License::class);
}
public function activeLicense(): License
public function activeLicense(): ?License
{
return $this->licenses()->active()->first();
}