diff --git a/app/Models/User.php b/app/Models/User.php index 3ce5c21..f9cabff 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -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(); }