update deploy

This commit is contained in:
bulut
2026-03-27 10:41:54 +03:00
parent 69d19c0176
commit 6f6448aa06
422 changed files with 37956 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Actions\Page;
use App\DTOs\PageData;
use App\Events\ModelChanged;
use App\Models\Page;
use App\Repositories\Contracts\PageRepositoryInterface;
final class UpdatePageAction
{
public function __construct(private PageRepositoryInterface $repository) {}
public function execute(Page $page, PageData $data): Page
{
$result = $this->repository->update($page, $data->toArray());
ModelChanged::dispatch(Page::class, 'updated');
return $result;
}
}