public function setScope($scope)
    {
        if (empty($scope)) {
            return $this->clearScope();
        }

        session()->put($this->getSessionKey(static::TYPE_SCOPE), $scope);

        return $this;
    }
public function setScope($scope)
    {
        if (empty($scope)) {
            return $this->clearScope();
        }

        session()->put($this->getSessionKey(static::TYPE_SCOPE), $scope);

        return $this;
    }
public function setScope ( $ scope ) { if ( empty ( $ scope ) ) { return $ this -> clearScope ( ) ; } session ( ) -> put ( $ this -> getSessionKey ( static :: TYPE_SCOPE ) , $ scope ) ; return $ this ; }
Sets active scope for the current context.

@param string $scope
@return $this
Sets active scope for the current context .