src/Extension/ExtensionManager.php
public function enable($name)
    {
        if ($this->isEnabled($name)) {
            return;
        }

        $extension = $this->getExtension($name);

        $this->dispatcher->dispatch(new Enabling($extension));

        $enabled = $this->getEnabled();

        $enabled[] = $name;

        $this->migrate($extension);

        $this->publishAssets($extension);

        $this->setEnabled($enabled);

        $extension->enable($this->app);

        $this->dispatcher->dispatch(new Enabled($extension));
    }
public function enable($name)
    {
        if ($this->isEnabled($name)) {
            return;
        }

        $extension = $this->getExtension($name);

        $this->dispatcher->dispatch(new Enabling($extension));

        $enabled = $this->getEnabled();

        $enabled[] = $name;

        $this->migrate($extension);

        $this->publishAssets($extension);

        $this->setEnabled($enabled);

        $extension->enable($this->app);

        $this->dispatcher->dispatch(new Enabled($extension));
    }
public function enable ( $ name ) { if ( $ this -> isEnabled ( $ name ) ) { return ; } $ extension = $ this -> getExtension ( $ name ) ; $ this -> dispatcher -> dispatch ( new Enabling ( $ extension ) ) ; $ enabled = $ this -> getEnabled ( ) ; $ enabled [ ] = $ name ; $ this -> migrate ( $ extension ) ; $ this -> publishAssets ( $ extension ) ; $ this -> setEnabled ( $ enabled ) ; $ extension -> enable ( $ this -> app ) ; $ this -> dispatcher -> dispatch ( new Enabled ( $ extension ) ) ; }
Enables the extension.

@param string $name
Enables the extension .