protected function installSubAddons()
    {
        if ($subAddons = $this->addon->installs()) {
            foreach ($subAddons as $slug => $path) {
                app(self::class)->setSlug($slug)
                                ->setPath($this->path.'/'.$path)
                                ->install();
            }
        }
    }
protected function installSubAddons()
    {
        if ($subAddons = $this->addon->installs()) {
            foreach ($subAddons as $slug => $path) {
                app(self::class)->setSlug($slug)
                                ->setPath($this->path.'/'.$path)
                                ->install();
            }
        }
    }
protected function installSubAddons ( ) { if ( $ subAddons = $ this -> addon -> installs ( ) ) { foreach ( $ subAddons as $ slug => $ path ) { app ( self :: class ) -> setSlug ( $ slug ) -> setPath ( $ this -> path . '/' . $ path ) -> install ( ) ; } } }
Install sub addons
Install sub addons