public function check($token)
    {
        $blacklistedToken = $this->model
            ->where('user_id', $this->Token->getSubject($token))
            ->where('expiry', '>', Carbon::now())
            ->whereToken($token)
            ->first();

        if ($blacklistedToken === null) {
            return true;
        }

        throw new BlacklistedTokenException();
    }
public function check($token)
    {
        $blacklistedToken = $this->model
            ->where('user_id', $this->Token->getSubject($token))
            ->where('expiry', '>', Carbon::now())
            ->whereToken($token)
            ->first();

        if ($blacklistedToken === null) {
            return true;
        }

        throw new BlacklistedTokenException();
    }
public function check ( $ token ) { $ blacklistedToken = $ this -> model -> where ( 'user_id' , $ this -> Token -> getSubject ( $ token ) ) -> where ( 'expiry' , '>' , Carbon :: now ( ) ) -> whereToken ( $ token ) -> first ( ) ; if ( $ blacklistedToken === null ) { return true ; } throw new BlacklistedTokenException ( ) ; }
Check if a given token is considered blacklisted

TODO: Use export() method

@param $token
@return bool
@throws BlacklistedTokenException
Check if a given token is considered blacklisted