private function getPluginsMetadataList(): stdClass
    {
        app()->loadDeferredProviders();
        $providers = array_keys(app()->getLoadedProviders());

        $packages = (object) [
            'core' => collect(),
            'plugins' => collect(),
        ];

        foreach ($providers as $class) {
            // attempt to retrieve the class from booted app
            $provider = app()->getProvider($class);

            if (is_null($provider))
                continue;

            // ensure the provider is a valid SeAT package
            if (! is_a($provider, AbstractSeatPlugin::class))
                continue;

            // seed proper collection according to package vendor
            $provider->getPackagistVendorName() === 'eveseat' ?
                $packages->core->push($provider) : $packages->plugins->push($provider);
        }

        return $packages;
    }
private function getPluginsMetadataList(): stdClass
    {
        app()->loadDeferredProviders();
        $providers = array_keys(app()->getLoadedProviders());

        $packages = (object) [
            'core' => collect(),
            'plugins' => collect(),
        ];

        foreach ($providers as $class) {
            // attempt to retrieve the class from booted app
            $provider = app()->getProvider($class);

            if (is_null($provider))
                continue;

            // ensure the provider is a valid SeAT package
            if (! is_a($provider, AbstractSeatPlugin::class))
                continue;

            // seed proper collection according to package vendor
            $provider->getPackagistVendorName() === 'eveseat' ?
                $packages->core->push($provider) : $packages->plugins->push($provider);
        }

        return $packages;
    }
private function getPluginsMetadataList ( ) : stdClass { app ( ) -> loadDeferredProviders ( ) ; $ providers = array_keys ( app ( ) -> getLoadedProviders ( ) ) ; $ packages = ( object ) [ 'core' => collect ( ) , 'plugins' => collect ( ) , ] ; foreach ( $ providers as $ class ) { // attempt to retrieve the class from booted app $ provider = app ( ) -> getProvider ( $ class ) ; if ( is_null ( $ provider ) ) continue ; // ensure the provider is a valid SeAT package if ( ! is_a ( $ provider , AbstractSeatPlugin :: class ) ) continue ; // seed proper collection according to package vendor $ provider -> getPackagistVendorName ( ) === 'eveseat' ? $ packages -> core -> push ( $ provider ) : $ packages -> plugins -> push ( $ provider ) ; } return $ packages ; }
Compute a list of provider class which are implementing SeAT package structure.

@return \stdClass
Compute a list of provider class which are implementing SeAT package structure .