get('database.default') . DIRECTORY_SEPARATOR . 'ambulatorio' . DIRECTORY_SEPARATOR . 'atendimento'; $fileName = request()->tipo; $arquivo = "{$fileName}-{$atendimentoId}.PDF"; $headers = [ 'Content-Type' => 'application/pdf', ]; $filePath = Storage::path( $path . DIRECTORY_SEPARATOR . $arquivo); return response()->download($filePath, $arquivo, $headers); } }