Hi, Using join queries may be not the best option since they dont support nested results.
You can use laravel relationships instead https://laravel.com/docs/8.x/eloquent-relationships#introduction
I guess many to many is the relation type that you need.