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);
|
|
}
|
|
}
|