public function findByToken($token)
    {
        $blacklistedToken = $this->model->whereToken($token)->first();

        if ($blacklistedToken === null)
        {
            throw new ModelNotFoundException();
        }

        return $blacklistedToken->toArray();
    }
public function findByToken($token)
    {
        $blacklistedToken = $this->model->whereToken($token)->first();

        if ($blacklistedToken === null)
        {
            throw new ModelNotFoundException();
        }

        return $blacklistedToken->toArray();
    }
public function findByToken ( $ token ) { $ blacklistedToken = $ this -> model -> whereToken ( $ token ) -> first ( ) ; if ( $ blacklistedToken === null ) { throw new ModelNotFoundException ( ) ; } return $ blacklistedToken -> toArray ( ) ; }
Try to find a blacklisted token entity by its associated token

TODO: Use export() method

@param string $token
@return array
Try to find a blacklisted token entity by its associated token