public function images($tag = null)
    {
        $images = [];

        if (is_array($tag)) {
            foreach ($tag as $tagName) {
                $images = array_merge($images, $this->imageRepo->getImagesByTag($tag)->get()->toArray());
            }
        } elseif (is_null($tag)) {
            $images = array_merge($images, $this->imageRepo->getImagesByTag()->get()->toArray());
        } else {
            $images = array_merge($images, $this->imageRepo->getImagesByTag($tag)->get()->toArray());
        }

        return $images;
    }
public function images($tag = null)
    {
        $images = [];

        if (is_array($tag)) {
            foreach ($tag as $tagName) {
                $images = array_merge($images, $this->imageRepo->getImagesByTag($tag)->get()->toArray());
            }
        } elseif (is_null($tag)) {
            $images = array_merge($images, $this->imageRepo->getImagesByTag()->get()->toArray());
        } else {
            $images = array_merge($images, $this->imageRepo->getImagesByTag($tag)->get()->toArray());
        }

        return $images;
    }
public function images ( $ tag = null ) { $ images = [ ] ; if ( is_array ( $ tag ) ) { foreach ( $ tag as $ tagName ) { $ images = array_merge ( $ images , $ this -> imageRepo -> getImagesByTag ( $ tag ) -> get ( ) -> toArray ( ) ) ; } } elseif ( is_null ( $ tag ) ) { $ images = array_merge ( $ images , $ this -> imageRepo -> getImagesByTag ( ) -> get ( ) -> toArray ( ) ) ; } else { $ images = array_merge ( $ images , $ this -> imageRepo -> getImagesByTag ( $ tag ) -> get ( ) -> toArray ( ) ) ; } return $ images ; }
Get images.

@param string $tag

@return collection
Get images .