How to use 'hasManyThrough' with more than 3 tables in Laravel?
问题 as stated in the docs the current hasManyThrough can be used when u have something like country > users > posts which result in something like Country::whereName('xx')->posts; which is great but what if i have more than that like country > cities > users > posts or even country > cities > towns > users > posts how would you then implement something like that so you can write the same as above Country::whereName('xx')->posts; or Town::whereName('xx')->posts; 回答1: I created a HasManyThrough