user()->tenant()->firstOrFail(); return new AdminAppTicketCollection( $this->ticketService->search($tenant, $request->validated()) ); } public function downloadPdf(AdminAppTicketExportRequest $request): Response { $tenant = $request->user()->tenant()->firstOrFail(); return $this->ticketPdfService->download( $tenant, $this->ticketService->ticketsForExport($tenant, $request->validated()), $request->validated('timezone'), ); } public function downloadExcel(AdminAppTicketExportRequest $request): StreamedResponse { $tenant = $request->user()->tenant()->firstOrFail(); return $this->ticketExcelService->download( $tenant, $this->ticketService->ticketsForExport($tenant, $request->validated()), $request->validated('timezone'), ); } }