Ver código fonte

fixes some indentation problems in @lucianobargmann's PR to fix issue #637

Jose Antonio Martin 5 anos atrás
pai
commit
f0f6e0a266

+ 4 - 0
resources/views/partials/example-requests/bash.blade.php

@@ -1,7 +1,11 @@
 ```bash
 curl -X {{$route['methods'][0]}} \
     {{$route['methods'][0] == 'GET' ? '-G ' : ''}}"{{ rtrim($baseUrl, '/')}}/{{ ltrim($route['boundUri'], '/') }}@if(count($route['cleanQueryParameters']))?@foreach($route['cleanQueryParameters'] as $parameter => $value)
+@if (is_array($value))
+{{ urlencode($parameter) }}[]={{ urlencode(array_keys($value)[0]) }}@if(! $loop->last)&@endif
+@else
 {{ urlencode($parameter) }}={{ urlencode($value) }}@if(!$loop->last)&@endif
+@endif
 @endforeach
 @endif" @if(count($route['headers']))\
 @foreach($route['headers'] as $header => $value)