mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-17 17:01:37 +00:00
19 lines
319 B
PHP
Executable File
19 lines
319 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Actions\Site;
|
|
|
|
use App\Models\Site;
|
|
|
|
class UpdateEnv
|
|
{
|
|
public function handle(Site $site, array $input): void
|
|
{
|
|
$typeData = $site->type_data;
|
|
$typeData['env'] = $input['env'];
|
|
$site->type_data = $typeData;
|
|
$site->save();
|
|
|
|
$site->deployEnv();
|
|
}
|
|
}
|