eloquent-taggable
eloquent-taggable copied to clipboard
Easily add the ability to tag your Eloquent models in Laravel.
The standard, best practice in the Laravel world is to name the primary, auto incrementing column `id`. Any reason to break convention? I noticed this creating a foreign key constraint...
I do not know how to catch the problem. If you need additional information, tell me, I will try to provide. Article::popularTagsNormalized(3) >array:3 [[]() "elementary os" => 36 "ubuntu" =>...
This is a fabulous lib. Could you did some compatible work to make it work with Lumen Framework? Found you need import Illuminate\Foundation\Bus\Dispatchable in https://stackoverflow.com/questions/56657090/fatal-error-trait-illuminate-foundation-events-dispatchable-not-found-in-c-x Test in Lumen 6.x, 8.x....
I use a model with taggable. Content::popularTags() but Content have a global scope with where('status', 'published'); it's return without filter condition is it the way to filter the popularTags ?...
When: `$project->where('status', true)->select(['id', 'created_at'])->withAllTags('vue')->get()` Query SQL: ``` select `projects`.* from `projects` inner join `taggable_taggables` as `taggable_taggables_scopewithalltags_1` on `projects`.`id` = `taggable_taggables_scopewithalltags_1`.`taggable_id` and `taggable_taggables_scopewithalltags_1`.`taggable_type` = 'App\Models\Project' where `status` = 1 and `taggable_taggables_scopewithalltags_1`.`tag_id`...
I have a `tag_id` of a tag that I want to delete. I need the `$model` for me to detag it. Something like this below. ```php $tag = Tag::find("tag_id"); $model...
I'm using uuid for my model's id column and taggable_id column type is BIGINT. There is a conflict with column types. Maybe this option can be change on "taggable.php" config...
SQLSTATE[42000]: Syntax error or access violation: 1055 'website.stories.user_id' isn't in GROUP BY
Looks like queries are not compatible with SQL strict mode. Simple code will cause an issue: `SQLSTATE[42000]: Syntax error or access violation: 1055 'website.stories.user_id' isn't in GROUP BY` ``` Story::published()->withAllTags($this->tag)->count()...