feat: custom server limit

This commit is contained in:
Andras Bacsai
2024-02-23 15:45:53 +01:00
parent 55dd1ab0a1
commit 297b314904
6 changed files with 58 additions and 13 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Livewire\Subscription;
use App\Models\Team;
use Illuminate\Support\Facades\Http;
use Livewire\Component;
@@ -10,9 +11,7 @@ class Actions extends Component
public $server_limits = 0;
public function mount()
{
$limits = currentTeam()->limits;
$this->server_limits = data_get($limits, 'serverLimit', 0);
$this->server_limits = Team::serverLimit();
}
public function cancel()
{