mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 10:51:36 +00:00
36 lines
694 B
PHP
36 lines
694 B
PHP
<?php
|
|
|
|
namespace App\Http\Livewire\Ssl;
|
|
|
|
use App\Models\Site;
|
|
use App\Traits\RefreshComponentOnBroadcast;
|
|
use Illuminate\Contracts\View\View;
|
|
use Livewire\Component;
|
|
|
|
class CreateSsl extends Component
|
|
{
|
|
use RefreshComponentOnBroadcast;
|
|
|
|
public Site $site;
|
|
|
|
public string $type = '';
|
|
|
|
public string $certificate;
|
|
|
|
public string $private;
|
|
|
|
public function create(): void
|
|
{
|
|
app(\App\Actions\SSL\CreateSSL::class)->create($this->site, $this->all());
|
|
|
|
$this->emitTo(SslsList::class, '$refresh');
|
|
|
|
$this->dispatchBrowserEvent('created', true);
|
|
}
|
|
|
|
public function render(): View
|
|
{
|
|
return view('livewire.ssl.create-ssl');
|
|
}
|
|
}
|