protected function respondWithToken($token)
    {
        $tokenReponse = new \Stdclass;

        $tokenReponse->jwt = $token;
        $tokenReponse->token_type = 'bearer';
        $tokenReponse->expires_in = auth()->factory()->getTTL();

        return $this->response->item($tokenReponse, $this->getTransformer())->setStatusCode(200);
    }
protected function respondWithToken($token)
    {
        $tokenReponse = new \Stdclass;

        $tokenReponse->jwt = $token;
        $tokenReponse->token_type = 'bearer';
        $tokenReponse->expires_in = auth()->factory()->getTTL();

        return $this->response->item($tokenReponse, $this->getTransformer())->setStatusCode(200);
    }
protected function respondWithToken ( $ token ) { $ tokenReponse = new \ Stdclass ; $ tokenReponse -> jwt = $ token ; $ tokenReponse -> token_type = 'bearer' ; $ tokenReponse -> expires_in = auth ( ) -> factory ( ) -> getTTL ( ) ; return $ this -> response -> item ( $ tokenReponse , $ this -> getTransformer ( ) ) -> setStatusCode ( 200 ) ; }
Get the token array structure.

@param string $token
@return Response
Get the token array structure .