Skip to content

Commit 61a3e69

Browse files
authored
fix: use capture to populate global request with json array (#883)
Request::capture is using createFromBase that checks is request is json and replace request with json array ``` if ($newRequest->isJson()) { $newRequest->request = $newRequest->json(); } ``` and later when in controller you can use request->get('some-json-key') to get value as its a default laravel behavior [check index.php:53]
1 parent 93c0e04 commit 61a3e69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FrankenPhp/FrankenPhpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class FrankenPhpClient implements Client
1919
public function marshalRequest(RequestContext $context): array
2020
{
2121
return [
22-
Request::createFromGlobals(),
22+
Request::capture(),
2323
$context,
2424
];
2525
}

0 commit comments

Comments
 (0)