public function requestHasToken($key)
    {
        $token = $this->request->input($key, null);
        
        if($token && $token === $this->getToken($key))
        {
            return true;
        }

        return false;
    }
public function requestHasToken($key)
    {
        $token = $this->request->input($key, null);
        
        if($token && $token === $this->getToken($key))
        {
            return true;
        }

        return false;
    }
public function requestHasToken ( $ key ) { $ token = $ this -> request -> input ( $ key , null ) ; if ( $ token && $ token === $ this -> getToken ( $ key ) ) { return true ; } return false ; }
Checks if the request has the token

@param string $key
@return bool
Checks if the request has the token