spatie / laravel-tags

Add tags and taggable behaviour to your Laravel app

Home Page:https://freek.dev/609-an-opinionated-tagging-package-for-laravel-apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Call to undefined method MorphToMany::ordered() Exception

morhi opened this issue · comments

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 :)