We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e32cdd0 + a05d32e commit f9f615cCopy full SHA for f9f615c
src/Panel/VariablesPanel.php
@@ -73,6 +73,13 @@ public function shutdown(Event $event)
73
if ($item instanceof Query) {
74
$item = $item->all();
75
}
76
+ // Handle forms specifically until they implement __debugInfo
77
+ if ($item instanceof Form) {
78
+ $item = [
79
+ 'form class' => get_class($item),
80
+ 'errors' => $item->errors()
81
+ ];
82
+ }
83
if ($item instanceof Closure ||
84
$item instanceof PDO ||
85
$item instanceof SimpleXmlElement
@@ -88,6 +95,9 @@ public function shutdown(Event $event)
88
95
$item->getLine()
89
96
);
90
97
98
+ if (is_object($item) && method_exists($item, '__debugInfo')) {
99
+ $item = $item->__debugInfo();
100
91
101
return $item;
92
102
});
93
103
0 commit comments