We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0d92e1c + 335f7dd commit 7f85d1fCopy full SHA for 7f85d1f
src/Outputs/Alert.php
@@ -37,12 +37,12 @@ protected function getOutputContent(Collection $detectedQueries)
37
$output .= "alert('Found the following N+1 queries in this request:\\n\\n";
38
foreach ($detectedQueries as $detectedQuery) {
39
$output .= "Model: ".addslashes($detectedQuery['model']). " => Relation: ".addslashes($detectedQuery['relation']);
40
- $output .= " - You should add \"with(\'".$detectedQuery['relation']."\')\" to eager-load this relation.";
+ $output .= " - You should add \"with(\'".addslashes($detectedQuery['relation'])."\')\" to eager-load this relation.";
41
$output .= "\\n";
42
}
43
$output .= "')";
44
$output .= '</script>';
45
46
return $output;
47
48
-}
+}
0 commit comments