samedi 12 mars 2016

How I can take latest 5 comments for current user?

I have this tables:

Comment
Material1
Material2
User

Comment linked with material1 and material2 through morphTo and linked with user through belongsTo.

How I can take latest 5 comments for current user in the user's materials?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire