1 year ago

take by group and item both

Posted 1 year ago by arctushar

Hi I have an database with below info. I have 50 users with country. Now each users have several posts say some users have 15 post, some users have 2 posts and some users have no posts.

Now I want an eloquent which will select last 03 users with where country=x and also want last 05 posts for each 03 users

Is it possible? How can I do it with easy way ?

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