Implement project board status workflow

This commit is contained in:
2026-03-25 08:04:34 +01:00
parent f7a0543ea1
commit 7e767b0c6c
22 changed files with 1076 additions and 7 deletions
@@ -0,0 +1,28 @@
<?php
namespace App\Actions\Tickets;
use App\Models\Ticket;
use App\Models\TicketWorklogEntry;
use App\Models\User;
class CreateTicketWorklogEntry
{
/**
* @param array<string, mixed>|null $changes
*/
public function handle(
Ticket $ticket,
?User $actor,
string $entryType,
string $summary,
?array $changes = null,
): TicketWorklogEntry {
return $ticket->worklogEntries()->create([
'actor_id' => $actor?->id,
'changes' => $changes,
'entry_type' => $entryType,
'summary' => $summary,
]);
}
}