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.
Header
1 parent 35b93f2 commit 2006e2aCopy full SHA for 2006e2a
src/Testing/PartialRequest.php
@@ -5,6 +5,7 @@
5
use Illuminate\Foundation\Application;
6
use Illuminate\Foundation\Testing\Concerns\MakesHttpRequests;
7
use Illuminate\Testing\TestResponse;
8
+use Inertia\Support\Header;
9
10
class PartialRequest
11
{
@@ -21,9 +22,9 @@ public function __construct(
21
22
public function __invoke(): TestResponse
23
24
return $this->get($this->url, [
- 'X-Inertia-Partial-Data' => $this->props,
25
- 'X-Inertia-Partial-Component' => $this->component,
26
- 'X-Inertia-Version' => $this->version,
+ Header::PARTIAL_ONLY => $this->props,
+ Header::PARTIAL_COMPONENT => $this->component,
27
+ Header::VERSION => $this->version,
28
]);
29
}
30
0 commit comments