Call to undefined method MorphToMany::ordered() Exception
morhi opened this issue · comments
Maurice commented
When I try to use the HasTags
trait I receive this exception when calling tags()
:
BadMethodCallException
Call to undefined method Illuminate\Database\Eloquent\Relations\MorphToMany::ordered()
The scopeOrdered
function should be defined by the Eloquent Sortable Package, however it doesn't work somehow.
Used Version: 4.3.0
with Laravel 8.82
and `spatie/eloquent-sortable@4.0.1
Edit: Sorry, found the error, my fault :)