lasthourcloud/app/Livewire/Subscription/Actions.php
2024-06-25 13:54:58 +02:00

23 lines
406 B
PHP

<?php
namespace App\Livewire\Subscription;
use App\Models\Team;
use Livewire\Component;
class Actions extends Component
{
public $server_limits = 0;
public function mount()
{
$this->server_limits = Team::serverLimit();
}
public function stripeCustomerPortal()
{
$session = getStripeCustomerPortalSession(currentTeam());
redirect($session->url);
}
}