BadMethodCallException with message 'Call to undefined method App\Models\User::attach()'
umairparacha00 opened this issue · comments
As the decocumention says
$user->attach(\Spatie\Tags\Tag::findOrCreate('tag4'));
but trying this gives an error
BadMethodCallException with message 'Call to undefined method App\Models\User::attach()'
Try attachTag
. Feel free to fix the docs where you saw that (there's an edit button on top of the page).