vito/app/SSH/PHPMyAdmin/PHPMyAdmin.php
Saeed Vaziry cdbde063f0
use blade as conmmands template (#444)
* use blade as conmmands template

* fix lint

* fix ssl
2025-01-27 21:27:58 +01:00

25 lines
480 B
PHP

<?php
namespace App\SSH\PHPMyAdmin;
use App\Exceptions\SSHError;
use App\Models\Site;
class PHPMyAdmin
{
/**
* @throws SSHError
*/
public function install(Site $site): void
{
$site->server->ssh($site->user)->exec(
view('ssh.phpmyadmin.install', [
'version' => $site->type_data['version'],
'path' => $site->path,
]),
'install-phpmyadmin',
$site->id
);
}
}