public function enable()
    {
        if (! $this->config instanceof ConfigContract) {
            throw new SandboxException('Please initialize after setting base app.');
        }

        $this->setInstance($app = $this->getApplication());
        $this->resetApp($app);
    }
public function enable()
    {
        if (! $this->config instanceof ConfigContract) {
            throw new SandboxException('Please initialize after setting base app.');
        }

        $this->setInstance($app = $this->getApplication());
        $this->resetApp($app);
    }
public function enable ( ) { if ( ! $ this -> config instanceof ConfigContract ) { throw new SandboxException ( 'Please initialize after setting base app.' ) ; } $ this -> setInstance ( $ app = $ this -> getApplication ( ) ) ; $ this -> resetApp ( $ app ) ; }
Set laravel snapshot to container and facade.

@throws \SwooleTW\Http\Exceptions\SandboxException
Set laravel snapshot to container and facade .