app/Services/Media.php
/**
     * Gather all applicable files in a given directory.
     *
     * @param string $path The directory's full path
     *
     * @return array An array of SplFileInfo objects
     */
Gather all applicable files in a given directory.
@param string $path The directory's full path

@return array An array of SplFileInfo objects
Gather all applicable files in a given directory . @param string $path The directory ' s full path @return array An array of SplFileInfo objects
public function gatherFiles($path)
    {
        return Finder::create()
            ->ignoreUnreadableDirs()
            ->files()
            ->name('/\.(mp3|ogg|m4a|flac)$/i')
            ->in($path);
    }
public function gatherFiles ( $ path ) { return Finder :: create ( ) -> ignoreUnreadableDirs ( ) -> files ( ) -> name ( '/\.(mp3|ogg|m4a|flac)$/i' ) -> in ( $ path ) ; }
Gather all applicable files in a given directory.
Gather all applicable files in a given directory .