mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
init
This commit is contained in:
24
app/Http/Livewire/ServerSettings/CheckConnection.php
Normal file
24
app/Http/Livewire/ServerSettings/CheckConnection.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user