<?php is_iterable(mixed $value): bool
<?php public function isIterable($value) { return is_iterable($value); }
<?php $values = array_filter(explode('|', $values)); } if (is_null($values) || (is_iterable($values) && count($values) === 0)) { return; }
<?php { if (! is_iterable($items)) { if (Str::contains($items, '|')) { $items = explode('|', $items); } else {
<?php { $items = $items ?? $this->params->get(['src', 'id', 'path']); $items = is_iterable($items) ? collect($items) : collect([$items]); return $items->map(function ($item) { $data = ['url' => $this->generateGlideUrl($item)];