Fix the user issue
This commit is contained in:
parent
e9174238e4
commit
dc5a828b8e
|
@ -154,7 +154,7 @@ class User extends Authenticatable implements JWTSubject
|
||||||
return $this->hasMany(License::class);
|
return $this->hasMany(License::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function activeLicense(): License
|
public function activeLicense(): ?License
|
||||||
{
|
{
|
||||||
return $this->licenses()->active()->first();
|
return $this->licenses()->active()->first();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue