public function load()
    {
        $this->extensions = [];
        foreach ($this->getPackages() as $package) {
            [$v, $p] = explode('/', $package['name']);
            $extension = Extension::findBy([
                'vendor' => $v,
                'package' => $p
            ]);
            if (!$extension) {
                $extension = (new Extension())
                    ->vendor($v)
                    ->package($p);
            }
            $extension
                ->version($package['version'] ?? '')
                ->description($package['description'] ?? '')
                ->save();
            $this->extensions[] = $extension;
        }
        return $this;
    }
public function load()
    {
        $this->extensions = [];
        foreach ($this->getPackages() as $package) {
            [$v, $p] = explode('/', $package['name']);
            $extension = Extension::findBy([
                'vendor' => $v,
                'package' => $p
            ]);
            if (!$extension) {
                $extension = (new Extension())
                    ->vendor($v)
                    ->package($p);
            }
            $extension
                ->version($package['version'] ?? '')
                ->description($package['description'] ?? '')
                ->save();
            $this->extensions[] = $extension;
        }
        return $this;
    }
public function load ( ) { $ this -> extensions = [ ] ; foreach ( $ this -> getPackages ( ) as $ package ) { [ $ v , $ p ] = explode ( '/' , $ package [ 'name' ] ) ; $ extension = Extension :: findBy ( [ 'vendor' => $ v , 'package' => $ p ] ) ; if ( ! $ extension ) { $ extension = ( new Extension ( ) ) -> vendor ( $ v ) -> package ( $ p ) ; } $ extension -> version ( $ package [ 'version' ] ?? '' ) -> description ( $ package [ 'description' ] ?? '' ) -> save ( ) ; $ this -> extensions [ ] = $ extension ; } return $ this ; }
sync install packages with extension repository

@return $this
sync install packages with extension repository