protected function make()
    {
        $entry = AddonModel::query()->create([
            'name'      => $this->name(),
            'vendor'    => $this->vendor(),
            'slug'      => $this->slug,
            'path'      => $this->relativePath(),
            'type'      => $this->type(),
            'namespace' => $this->namespace(),
            'enabled'   => true,
        ]);

        /** @var \SuperV\Platform\Domains\Addon\AddonModel $entry */
        $this->addon = $entry->resolveAddon();
    }
protected function make()
    {
        $entry = AddonModel::query()->create([
            'name'      => $this->name(),
            'vendor'    => $this->vendor(),
            'slug'      => $this->slug,
            'path'      => $this->relativePath(),
            'type'      => $this->type(),
            'namespace' => $this->namespace(),
            'enabled'   => true,
        ]);

        /** @var \SuperV\Platform\Domains\Addon\AddonModel $entry */
        $this->addon = $entry->resolveAddon();
    }
protected function make ( ) { $ entry = AddonModel :: query ( ) -> create ( [ 'name' => $ this -> name ( ) , 'vendor' => $ this -> vendor ( ) , 'slug' => $ this -> slug , 'path' => $ this -> relativePath ( ) , 'type' => $ this -> type ( ) , 'namespace' => $ this -> namespace ( ) , 'enabled' => true , ] ) ; /** @var \SuperV\Platform\Domains\Addon\AddonModel $entry */ $ this -> addon = $ entry -> resolveAddon ( ) ; }
Make addon entry
Make addon entry