Allow Care service API to issue tickets.
Deploy Ladill Queue / deploy (push) Has started running

Care needs POST /tickets on the service-auth stack so check-in and
department handoffs can create queue tickets without Sanctum.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-17 16:27:51 +00:00
co-authored by Cursor
parent 9edf573d39
commit 0275ec603d
3 changed files with 34 additions and 0 deletions
@@ -57,6 +57,7 @@ class TicketController extends Controller
'customer_email' => ['nullable', 'email', 'max:255'],
'priority' => ['nullable', 'string', 'in:'.implode(',', array_keys(config('qms.ticket_priorities')))],
'source' => ['nullable', 'string', 'in:'.implode(',', array_keys(config('qms.ticket_sources')))],
'metadata' => ['nullable', 'array'],
]);
$queue = ServiceQueue::where('uuid', $validated['service_queue_id'])->firstOrFail();
@@ -66,6 +67,7 @@ class TicketController extends Controller
...$validated,
'source' => $validated['source'] ?? 'api',
'actor_ref' => $owner,
'metadata' => $validated['metadata'] ?? null,
]);
return response()->json(['data' => TicketPresenter::toArray($ticket)], 201);