From 00237293e240157aa165786eec1de824fc796128 Mon Sep 17 00:00:00 2001 From: Devadatta Sahoo Date: Sat, 7 Jul 2018 03:36:41 +0530 Subject: [PATCH] Resolves Issue 43 Resolves https://github.com/selahattinunlu/laravel-api-query-builder/issues/43 --- src/RequestCreator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RequestCreator.php b/src/RequestCreator.php index 7f3f094..2461db9 100644 --- a/src/RequestCreator.php +++ b/src/RequestCreator.php @@ -33,7 +33,7 @@ private static function createCustomRequest($get = [], $post = [], $attrs = [], $server = $_SERVER; } - $requestUri = $_SERVER['PATH_INFO']; + $requestUri = $_SERVER['REQUEST_URI']; $requestQueryString = ''; if (count($get) > 0) { @@ -58,4 +58,4 @@ private static function createCustomRequest($get = [], $post = [], $attrs = [], return new Request($get, $post, $attrs, $cookies, $files, $server); } -} \ No newline at end of file +}