<?php http_build_query( array|object $data, string $numeric_prefix = "", ?string $arg_separator = null, int $encoding_type = PHP_QUERY_RFC1738): string
<?php public static function query($array) { return http_build_query($array, '', '&', PHP_QUERY_RFC3986); }
<?php return $request->getParsedBody(); })->middleware(MergeDataMiddleware::class); $response = $this->withoutExceptionHandling()->get('test-route?'.http_build_query([ 'sent' => 'sent-data', 'overridden' => 'overridden-sent-data', ])); $response->assertOk(); $response->assertExactJson([
<?php return $request->getParsedBody(); })->middleware(MergeDataMiddleware::class); $response = $this->getJson('test-route?'.http_build_query([ 'sent' => 'sent-data', 'overridden' => 'overridden-sent-data', ]), [ 'content-type' => 'application/json', ]);
<?php return $request->getParsedBody(); })->middleware(MergeDataMiddleware::class); $response = $this->getJson('test-route?'.http_build_query([ 'sent' => 'sent-data', 'overridden' => 'overridden-sent-data', ])); $response->assertOk(); $response->assertExactJson([