modal show global

This commit is contained in:
xiaomlove
2022-08-10 17:38:05 +08:00
parent 72b80887a4
commit e9b141fc00
34 changed files with 1106 additions and 175 deletions
+16
View File
@@ -0,0 +1,16 @@
<?php
namespace App\Console;
trait ExecuteCommandTrait
{
protected function executeCommand($command)
{
$this->info("Running $command ...");
$result = exec($command, $output, $result_code);
do_log(sprintf('command: %s, result_code: %s, output: %s, result: %s', $command, $result_code, json_encode($output), $result));
if ($result_code != 0) {
throw new \RuntimeException(json_encode($output));
}
}
}