mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 19:01:37 +00:00
25 lines
470 B
PHP
25 lines
470 B
PHP
<?php
|
|
|
|
namespace App\Http\Livewire\ServerSettings;
|
|
|
|
use App\Models\Server;
|
|
use Illuminate\Contracts\View\View;
|
|
use Livewire\Component;
|
|
|
|
class CheckConnection extends Component
|
|
{
|
|
public Server $server;
|
|
|
|
public function check(): void
|
|
{
|
|
$this->server->checkConnection();
|
|
|
|
session()->flash('status', 'checking-connection');
|
|
}
|
|
|
|
public function render(): View
|
|
{
|
|
return view('livewire.server-settings.check-connection');
|
|
}
|
|
}
|