protected function getImagesPayload($value)
    {
        $images = [];

        foreach ((array) $value as $img) {
            if (! empty($img['url'])) {
                $img = $img['url'];
            }

            if (is_string($img) && ! empty($img)) {
                $images[] = ['url' => $img];
            }
        }

        return $images;
    }
protected function getImagesPayload($value)
    {
        $images = [];

        foreach ((array) $value as $img) {
            if (! empty($img['url'])) {
                $img = $img['url'];
            }

            if (is_string($img) && ! empty($img)) {
                $images[] = ['url' => $img];
            }
        }

        return $images;
    }
protected function getImagesPayload ( $ value ) { $ images = [ ] ; foreach ( ( array ) $ value as $ img ) { if ( ! empty ( $ img [ 'url' ] ) ) { $ img = $ img [ 'url' ] ; } if ( is_string ( $ img ) && ! empty ( $ img ) ) { $ images [ ] = [ 'url' => $ img ] ; } } return $ images ; }
Get payload for images.

@param  mixed  $value
@return array
Get payload for images .