From 93640f257162cd31494a3eb8a41da2b203a16038 Mon Sep 17 00:00:00 2001 From: Devadatta Sahoo Date: Sat, 7 Jul 2018 03:52:03 +0530 Subject: [PATCH] Resolves Issue#43 Resolves https://github.com/selahattinunlu/laravel-api-query-builder/pull/44/commits/00237293e240157aa165786eec1de824fc796128 --- src/RequestCreator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RequestCreator.php b/src/RequestCreator.php index 7f3f094..49833ec 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 = explode("?", $_SERVER['REQUEST_URI'])[0];; $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 +}