Explorar el Código

Merge pull request #553 from congkv/hotfix/correct_uri_in_example_request_for_php

Correct URI in example request for PHP
Shalvah hace 5 años
padre
commit
f691f9eb66
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      resources/views/partials/example-requests/php.blade.php

+ 1 - 1
resources/views/partials/example-requests/php.blade.php

@@ -1,7 +1,7 @@
 ```php
 
 $client = new \GuzzleHttp\Client();
-$response = $client->{{ strtolower($route['methods'][0]) }}("{{ rtrim($baseUrl, '/') . '/' . $route['boundUri'] }}", [
+$response = $client->{{ strtolower($route['methods'][0]) }}("{{ rtrim($baseUrl, '/') . '/' . ltrim($route['boundUri'], '/') }}", [
 @if(!empty($route['headers']))
     'headers' => [
     @foreach($route['headers'] as $header => $value)