authorize('manage pdf config'); $drivers = [ 'dompdf', 'gotenberg', ]; return response()->json($drivers); } /** * Return the PDF settings * * @throws AuthorizationException */ public function getEnvironment(): JsonResponse { $this->authorize('manage pdf config'); return response()->json($this->configuration->environment()); } /** * Saves the settings * * @throws AuthorizationException */ public function saveEnvironment(PdfConfigurationRequest $request): JsonResponse { $this->authorize('manage pdf config'); $this->configuration->store($request->validated()); return response()->json([ 'success' => 'pdf_variables_save_successfully', ]); } }