feat: custom server limit

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

No files matched your search

+2 -3
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()
{