mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-16 20:49:28 +00:00
19 lines
288 B
PHP
19 lines
288 B
PHP
<?php
|
|
|
|
namespace App\Actions\Service;
|
|
|
|
use App\Models\Service;
|
|
use Lorisleiva\Actions\Concerns\AsAction;
|
|
|
|
class RestartService
|
|
{
|
|
use AsAction;
|
|
|
|
public function handle(Service $service)
|
|
{
|
|
StopService::run($service);
|
|
|
|
return StartService::run($service);
|
|
}
|
|
}
|