seyidaniels
1 year ago

Eloquent Relationships not giving data of relationships

Posted 1 year ago by seyidaniels

I am working on a restful api with jwt auth and created relationship between the User and the Result Model such that the User has many results and the Results belongs to one User.

But on using postman to test the api for the results, i get the Results data with the user id but i do not have the user details which i need on my angular front end please how do i go about this?

The User Model

Please sign in or create an account to participate in this conversation.