lasthourcloud/app/Livewire/Subscription/Show.php

23 lines
448 B
PHP
Raw Normal View History

<?php
namespace App\Livewire\Subscription;
use Livewire\Component;
class Show extends Component
{
public function mount()
{
if (!isCloud()) {
return redirect()->route('dashboard');
}
2024-02-23 11:59:14 +00:00
if (!data_get(currentTeam(), 'subscription')) {
return redirect()->route('subscription.index');
}
}
public function render()
{
return view('livewire.subscription.show');
}
}