feat: api api api api api api

This commit is contained in:
Andras Bacsai committed 2024-07-02 16:12:04 +02:00
1 parent 3c13f1ff61
commit 4459c9f73d
13 files changed
+636 -85

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
<?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);
}
}