Closed jasminetracey closed 7 years ago
Which version of Laravel and which version of this package are you using?
laravel 5.4, php 5.6, version 2.*
findByName
and the taggedModels
configuration were added in 3.*.
You'll need to update to at least version 3.0 of the package, preferably 3.1, although both of those will require PHP7 as well.
$articles = Tag::findByName($tag)->articles;
Calling that throws the following errorCall to undefined method Illuminate\Database\Query\Builder::findByName()
I added article class to taggedModels
'taggedModels' => [ 'articles' => \App\Entities\Article::class ]