public static function instances(): BaseCollection
    {
        $instances = new BaseCollection;

        foreach (static::make()->all() as $key => $value) {
            if ($instance = self::instance($key)) {
                $instances->put($key, $instance);
            }
        }

        return $instances;
    }
public static function instances(): BaseCollection
    {
        $instances = new BaseCollection;

        foreach (static::make()->all() as $key => $value) {
            if ($instance = self::instance($key)) {
                $instances->put($key, $instance);
            }
        }

        return $instances;
    }
public static function instances ( ) : BaseCollection { $ instances = new BaseCollection ; foreach ( static :: make ( ) -> all ( ) as $ key => $ value ) { if ( $ instance = self :: instance ( $ key ) ) { $ instances -> put ( $ key , $ instance ) ; } } return $ instances ; }
Returns a collection of item instances

@return BaseCollection
Returns a collection of item instances