src/Components/ComponentServiceProvider.php
/**
     * Register the component library classes
     *
     * @return void
     */
Register the component library classes
@return void
Register the component library classes @return void
public function register()
    {
        $this->app->singleton(ComponentLibrary::class, function() {
            $assets = $this->app->make(AssetManager::class);
            return new ComponentLibrary(
                $assets,
                $this->app,
                $this->components
            );
        });
        $this->app->alias(ComponentLibrary::class, 'components');
    }
public function register ( ) { $ this -> app -> singleton ( ComponentLibrary :: class , function ( ) { $ assets = $ this -> app -> make ( AssetManager :: class ) ; return new ComponentLibrary ( $ assets , $ this -> app , $ this -> components ) ; } ) ; $ this -> app -> alias ( ComponentLibrary :: class , 'components' ) ; }
Register the component library classes
 @return void
Register the component library classes @return void