Customising token response Laravel Passport

后端 未结 5 1487
被撕碎了的回忆
被撕碎了的回忆 2020-12-16 11:34

I am working on an API at the moment and have hit a brick wall. I am using Passport with the \'Password\' grant type.

I want to return the user information with the

5条回答
  •  温柔的废话
    2020-12-16 11:51

    Another better answer from the web

    Custom Laravel Passport BearerTokenResponse

    https://gist.github.com/messi89/489473c053e3ea8d9e034b0032effb1d

提交回复
热议问题