protected function checkScope($update = true)
    {
        $request = request();

        if ($update && $request->exists('scope')) {

            $this->activeScope = $request->get('scope');

            $this->markResetActivePage();
            $this->storeActiveScopeInSession();
        } else {
            $this->retrieveActiveScopeFromSession();
        }

        // Check if active is valid, reset it othwerwise
        if ($this->activeScope && ! $this->isValidScopeKey($this->activeScope)) {
            $this->activeScope = null;
            $this->storeActiveScopeInSession();
        }

        return $this;
    }
protected function checkScope($update = true)
    {
        $request = request();

        if ($update && $request->exists('scope')) {

            $this->activeScope = $request->get('scope');

            $this->markResetActivePage();
            $this->storeActiveScopeInSession();
        } else {
            $this->retrieveActiveScopeFromSession();
        }

        // Check if active is valid, reset it othwerwise
        if ($this->activeScope && ! $this->isValidScopeKey($this->activeScope)) {
            $this->activeScope = null;
            $this->storeActiveScopeInSession();
        }

        return $this;
    }
protected function checkScope ( $ update = true ) { $ request = request ( ) ; if ( $ update && $ request -> exists ( 'scope' ) ) { $ this -> activeScope = $ request -> get ( 'scope' ) ; $ this -> markResetActivePage ( ) ; $ this -> storeActiveScopeInSession ( ) ; } else { $ this -> retrieveActiveScopeFromSession ( ) ; } // Check if active is valid, reset it othwerwise if ( $ this -> activeScope && ! $ this -> isValidScopeKey ( $ this -> activeScope ) ) { $ this -> activeScope = null ; $ this -> storeActiveScopeInSession ( ) ; } return $ this ; }
Checks for the active scope.

@param bool $update
@return $this
Checks for the active scope .