staudenmeir / eloquent-has-many-deep

Laravel Eloquent HasManyThrough relationships with unlimited levels
MIT License
2.67k stars 157 forks source link

Call to undefined method App\Models\Province::hasManyDeep() #130

Closed mulyawansentosa closed 3 years ago

mulyawansentosa commented 3 years ago

I have follow installation instruction, I have add usage of this package with: use Staudenmeir\EloquentHasManyDeep\HasRelationships; but when I use it on my model it shows: BadMethodCallException Call to undefined method App\Models\Province::hasManyDeep() How to solve this?

staudenmeir commented 3 years ago

Please share the whole model.

mulyawansentosa commented 3 years ago

I have posted my cases about hasManyThrough on stackoverflow. There I post my model, controller and what I need to get. Seem Laravel don't support unlimited hasManyThrough, so I try your package.

staudenmeir commented 3 years ago

Where is the Stack Overflow post?