protected function getImageFiles($path)
    {
        $finder = Finder::create()->in($path)->sortByType()->depth(0);
        foreach (config('media.images_ext') as $file) {
            $finder->name('*' . $file);
        }

        return $finder;
    }
protected function getImageFiles($path)
    {
        $finder = Finder::create()->in($path)->sortByType()->depth(0);
        foreach (config('media.images_ext') as $file) {
            $finder->name('*' . $file);
        }

        return $finder;
    }
protected function getImageFiles ( $ path ) { $ finder = Finder :: create ( ) -> in ( $ path ) -> sortByType ( ) -> depth ( 0 ) ; foreach ( config ( 'media.images_ext' ) as $ file ) { $ finder -> name ( '*' . $ file ) ; } return $ finder ; }
Get image files by path.

@param string $path
@return Finder
Get image files by path .