The default response of Laravel Passport comes like this:
{
"token_type": "Bearer",
"expires_in": 31536000,
"access_token": djabjkdakadbakdkakjdbjkba
}
I need to add some custom response like:
{
"success":"true",
"message":"Login Successful",
"status":"200",
"data":{
"token_type": "Bearer",
"expires_in": 31536000,
"access_token":"djabjkdakadbakdkakjdbjkba"
}
}
Can somebody help me about this idea?