This commit is contained in:
Bozhidar Slaveykov 2024-04-01 12:04:47 +03:00
parent 1fc8382a16
commit f1fb4a67b4
4 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@ class Website extends Model
static::creating(function ($model) { static::creating(function ($model) {
$createWebsite = ShellApi::callBin('website-create', [ $createWebsite = ShellApi::callBin('nginx-website-create', [
$model->domain, $model->domain,
'bobkata' 'bobkata'
]); ]);
@ -41,7 +41,7 @@ class Website extends Model
}); });
static::deleting(function ($model) { static::deleting(function ($model) {
$deleteWebsite = ShellApi::callBin('website-delete', [ $deleteWebsite = ShellApi::callBin('nginx-website-delete', [
$model->domain $model->domain
]); ]);
if (empty($deleteWebsite)) { if (empty($deleteWebsite)) {
@ -57,7 +57,7 @@ class Website extends Model
public function getRows() public function getRows()
{ {
$websitesList = ShellApi::callBin('websites-list'); $websitesList = ShellApi::callBin('nginx-websites-list');
$rows = []; $rows = [];
if (!empty($websitesList)) { if (!empty($websitesList)) {