isAdmin(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { $ticket = $this->route('ticket'); return [ 'linked_ticket_id' => [ 'required', 'numeric', 'exists:tickets,id', 'not_in:' . $ticket->id, ] ]; } }