lasthourcloud/app/Livewire/Subscription/Actions.php

23 lines
406 B
PHP
Raw Normal View History

<?php
2023-12-07 18:06:32 +00:00
namespace App\Livewire\Subscription;
2024-02-23 14:45:53 +00:00
use App\Models\Team;
use Livewire\Component;
class Actions extends Component
{
public $server_limits = 0;
2024-06-10 20:43:34 +00:00
public function mount()
{
2024-02-23 14:45:53 +00:00
$this->server_limits = Team::serverLimit();
}
2024-06-10 20:43:34 +00:00
public function stripeCustomerPortal()
{
2023-08-24 14:14:09 +00:00
$session = getStripeCustomerPortalSession(currentTeam());
redirect($session->url);
}
}