src/Packages.php
public static function all()
    {
        $preference = collect(['laralum', 'dashboard', 'users', 'roles', 'permissions']);

        collect(static::get())->each(function ($package) use ($preference) {
            if (!$preference->contains($package)) {
                $preference->push($package);
            }
        });

        return $preference->toArray();
    }
public static function all()
    {
        $preference = collect(['laralum', 'dashboard', 'users', 'roles', 'permissions']);

        collect(static::get())->each(function ($package) use ($preference) {
            if (!$preference->contains($package)) {
                $preference->push($package);
            }
        });

        return $preference->toArray();
    }
public static function all ( ) { $ preference = collect ( [ 'laralum' , 'dashboard' , 'users' , 'roles' , 'permissions' ] ) ; collect ( static :: get ( ) ) -> each ( function ( $ package ) use ( $ preference ) { if ( ! $ preference -> contains ( $ package ) ) { $ preference -> push ( $ package ) ; } } ) ; return $ preference -> toArray ( ) ; }
Gets all packages and orders them by preference.

@return array
Gets all packages and orders them by preference .