Skip to content

Commit

Permalink
Fix the user issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JhumanJ committed Nov 1, 2023
1 parent e917423 commit dc5a828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function licenses()
return $this->hasMany(License::class);
}

public function activeLicense(): License
public function activeLicense(): ?License
{
return $this->licenses()->active()->first();
}
Expand Down

0 comments on commit dc5a828

Please sign in to comment.