Add new Livewire component and update subscription actions

This commit is contained in:
Andras Bacsai committed 2024-02-25 22:08:44 +01:00
1 parent c3cfb8d23b
commit c8c7a415ea
7 files changed
+50 -9

No files matched your search

+6
View File
@@ -54,6 +54,12 @@ class Team extends Model implements SendsDiscord, SendsEmail
$servers = $team->servers->count();
return $servers >= $serverLimit;
}
public function serverOverflow() {
if ($this->serverLimit() < $this->servers->count()) {
return true;
}
return false;
}
static public function serverLimit()
{
return Team::find(currentTeam()->id)->limits['serverLimit'];