Laravel 8 Arr::query() {#collection-method}
Arr::query
函数将数组转换为查询字符串:
use Illuminate\Support\Arr;
$array = ['name' => 'Taylor', 'order' => ['column' => 'created_at', 'direction' => 'desc']];
Arr::query($array);
// name=Taylor&order[column]=created_at&order[direction]=desc