working ticket

This commit is contained in:
Mark Gregory
2026-06-16 13:11:27 +01:00
parent 6c5e2af806
commit 785529a0da
5 changed files with 16 additions and 17 deletions
+1 -2
View File
@@ -75,10 +75,9 @@ final class TicketCreate extends Component
/**
* Store a new helpdesk ticket.
*/
public function save(TicketService $tickets): mixed
public function save(TicketService $tickets)
{
$this->validate();
$this->validate([
'attachments.*' => 'file|max:'.config('helpdesk.max_upload_kb').'|mimes:'.implode(',', config('helpdesk.allowed_mimes')),
'tag_ids.*' => 'integer|exists:helpdesk_tags,id',