src/Helpers/Thumbnail.php
public function lists()
    {
        $parts = explode('.', $this->file->filename);

        $extension = array_pop($parts);

        $name = $this->file->path(implode('.', $parts));

        $files = glob($this->file->realPath("{$name}-*"));

        array_walk($files, function (&$file) {
            $file = substr($file, strrpos($file, '/') + 1, strlen($file));
            $file = $this->file->path($file);
        });

        return collect($files);
    }
public function lists()
    {
        $parts = explode('.', $this->file->filename);

        $extension = array_pop($parts);

        $name = $this->file->path(implode('.', $parts));

        $files = glob($this->file->realPath("{$name}-*"));

        array_walk($files, function (&$file) {
            $file = substr($file, strrpos($file, '/') + 1, strlen($file));
            $file = $this->file->path($file);
        });

        return collect($files);
    }
public function lists ( ) { $ parts = explode ( '.' , $ this -> file -> filename ) ; $ extension = array_pop ( $ parts ) ; $ name = $ this -> file -> path ( implode ( '.' , $ parts ) ) ; $ files = glob ( $ this -> file -> realPath ( "{$name}-*" ) ) ; array_walk ( $ files , function ( & $ file ) { $ file = substr ( $ file , strrpos ( $ file , '/' ) + 1 , strlen ( $ file ) ) ; $ file = $ this -> file -> path ( $ file ) ; } ) ; return collect ( $ files ) ; }
Return all thumbnails.

@return \Illuminate\Support\Collection
Return all thumbnails .