selahattinunlu / laravel-api-query-builder

Laravel & Lumen Api Query Builder Package
331 stars 66 forks source link

Undefined index: PATH_INFO {"exception":"[object] (ErrorException(code: 0): Undefined index: PATH_INFO at vendor/unlu/laravel-api-query-builder/src/RequestCreator.php:36) #43

Open devadattas opened 6 years ago

devadattas commented 6 years ago

Getting the following error when using custom requests with an URL without a trailing Slash.

Undefined index: PATH_INFO {"exception":"[object] (ErrorException(code: 0): Undefined index: PATH_INFO at vendor/unlu/laravel-api-query-builder/src/RequestCreator.php:36)

https://github.com/selahattinunlu/laravel-api-query-builder/blob/76b182cf850f8ca377349ef6586b31b617a17756/src/RequestCreator.php#L36

Refer: https://stackoverflow.com/questions/9879225/serverpath-info-on-localhost for the issue.