codecasts / spa-starter-kit

A highly opinionated starter kit for building Single Page Applications with Laravel and Vue.js
MIT License
913 stars 134 forks source link

Returns the user using the transformer #83

Closed jaonoctus closed 7 years ago

flyingluscas commented 7 years ago

@vinicius73 @vedovelli will this change affect in any way the client side?

jaonoctus commented 7 years ago

@flyingluscas @vinicius73 @vedovelli I guess so, because the json response structure has changed (but at least now it's the right way).

Before:

[
    'token',
    'token_ttl',
    'user' => [
        'id',
        'name',
        'email',
    ],
]

After:

[
    'token',
    'token_ttl',
    'user' => [
        'data' => [
            'id',
            'name',
            'email',
        ],
    ],
]
flyingluscas commented 7 years ago

@JaoNoctus I think so too

vedovelli commented 7 years ago

@JaoNoctus Thanks for this PR! I'll follow up from this point on!

vinicius73 commented 7 years ago

commit 6228fa9917d8d38af1a24b2bbe8a940f91eb52f6 fix BC from this PR