Fix the user issue
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user