src/Packages.php
public static function get()
    {
        // Check for Laralum packages
        $packages = [];
        $location = __DIR__.'/../../';

        $files = is_dir($location) ? scandir($location) : [];

        foreach ($files as $package) {
            if ($package != '.' and $package != '..' and ucfirst($package) != 'Laralum') {
                array_push($packages, strtolower($package));
            }
        }

        return $packages;
    }
public static function get()
    {
        // Check for Laralum packages
        $packages = [];
        $location = __DIR__.'/../../';

        $files = is_dir($location) ? scandir($location) : [];

        foreach ($files as $package) {
            if ($package != '.' and $package != '..' and ucfirst($package) != 'Laralum') {
                array_push($packages, strtolower($package));
            }
        }

        return $packages;
    }
public static function get ( ) { // Check for Laralum packages $ packages = [ ] ; $ location = __DIR__ . '/../../' ; $ files = is_dir ( $ location ) ? scandir ( $ location ) : [ ] ; foreach ( $ files as $ package ) { if ( $ package != '.' and $ package != '..' and ucfirst ( $ package ) != 'Laralum' ) { array_push ( $ packages , strtolower ( $ package ) ) ; } } return $ packages ; }
Returns an array of all the installed packages.
Returns an array of all the installed packages .