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.
1 parent cb84170 commit 2bdd1afCopy full SHA for 2bdd1af
src/Response.php
@@ -54,9 +54,11 @@ public function toResponse($request)
54
? array_only($this->props, $only)
55
: $this->props;
56
57
- $props = array_map(function ($prop) {
58
- return $prop instanceof Closure ? App::call($prop) : $prop;
59
- }, $props);
+ array_walk_recursive($props, function (&$prop) {
+ if ($prop instanceof Closure) {
+ $prop = App::call($prop);
60
+ }
61
+ });
62
63
$page = [
64
'component' => $this->component,
0 commit comments