auth(__FUNCTION__); $laudoService = new LaudoService(); return response()->json($laudoService->destroy($id), Response::HTTP_NO_CONTENT); } public function download($id) { $laudoService = new LaudoService(); $download = $laudoService->download($id, request()->hash); return response()->download($download['path'], $download['nome'], $download['headers']); } }