Closed kurorido closed 1 month ago
Laravel Resource response generally wrap in the data key.
We're heavily following Resource convention in Laravel, that's why we need to define the token key as "data.token" in the login response.
References: https://laravel.com/docs/11.x/eloquent-resources
Thanks for the contribution!
Laravel Resource response generally wrap in the data key.
We're heavily following Resource convention in Laravel, that's why we need to define the token key as "data.token" in the login response.
References: https://laravel.com/docs/11.x/eloquent-resources