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 f82586a + ddc595a commit 3d6237bCopy full SHA for 3d6237b
src/Response.php
@@ -3,6 +3,7 @@
3
namespace Inertia;
4
5
use Closure;
6
+use Illuminate\Support\Arr;
7
use Illuminate\Http\JsonResponse;
8
use Illuminate\Support\Facades\App;
9
use Illuminate\Support\Facades\View;
@@ -52,7 +53,7 @@ public function toResponse($request)
52
53
$only = array_filter(explode(',', $request->header('X-Inertia-Partial-Data')));
54
55
$props = ($only && $request->header('X-Inertia-Partial-Component') === $this->component)
- ? array_only($this->props, $only)
56
+ ? Arr::only($this->props, $only)
57
: $this->props;
58
59
array_walk_recursive($props, function (&$prop) {
0 commit comments