src/Routing/Route.php
public function isProtected()
    {
        if (isset($this->middleware['api.auth']) || in_array('api.auth', $this->middleware)) {
            if ($this->controller && isset($this->middleware['api.auth'])) {
                return $this->optionsApplyToControllerMethod($this->middleware['api.auth']);
            }

            return true;
        }

        return false;
    }
public function isProtected()
    {
        if (isset($this->middleware['api.auth']) || in_array('api.auth', $this->middleware)) {
            if ($this->controller && isset($this->middleware['api.auth'])) {
                return $this->optionsApplyToControllerMethod($this->middleware['api.auth']);
            }

            return true;
        }

        return false;
    }
public function isProtected ( ) { if ( isset ( $ this -> middleware [ 'api.auth' ] ) || in_array ( 'api.auth' , $ this -> middleware ) ) { if ( $ this -> controller && isset ( $ this -> middleware [ 'api.auth' ] ) ) { return $ this -> optionsApplyToControllerMethod ( $ this -> middleware [ 'api.auth' ] ) ; } return true ; } return false ; }
Determine if the route is protected.

@return bool
Determine if the route is protected .