Add new Livewire component and update subscription actions

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

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'];