Skip to content

Commit 9eceaca

Browse files
committed
Allow multiple debugvars in 1 call
1 parent 8bc0265 commit 9eceaca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/LaravelDebugBar.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,9 @@ public function __call($method, $args)
714714
{
715715
$messageLevels = array('emergency', 'alert', 'critical', 'error', 'warning', 'notice', 'info', 'debug', 'log');
716716
if (in_array($method, $messageLevels)) {
717-
$this->addMessage($args[0], $method);
717+
foreach($args as $arg) {
718+
$this->addMessage($arg, $method);
719+
}
718720
}
719721
}
720722

0 commit comments

Comments
 (0)