src/Foundation/Bus.php
public static function fetch($pattern, $app = false)
    {
        if ($app) {
            $path = root().'app/'.$pattern.'/*.php';
        } else {
            $path = root().$pattern.'/*.php';
        }

        return glob($path);
    }
public static function fetch($pattern, $app = false)
    {
        if ($app) {
            $path = root().'app/'.$pattern.'/*.php';
        } else {
            $path = root().$pattern.'/*.php';
        }

        return glob($path);
    }
public static function fetch ( $ pattern , $ app = false ) { if ( $ app ) { $ path = root ( ) . 'app/' . $ pattern . '/*.php' ; } else { $ path = root ( ) . $ pattern . '/*.php' ; } return glob ( $ path ) ; }
Fetch files from folder.

@param string $pattern
@param bool   $app     : if using app/files

@return array
Fetch files from folder .