eloquent-taggable: Popular Tags Not Working For Me

When I Do

return $tags = \App\Job::popularTags(10); I Get Error (2/2) QueryException SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? GROUP BY t.tag_id ORDER BY taggable_count DESC LIMIT ?' at line 1 (SQL: SELECT t.*, COUNT(t.tag_id) AS taggable_count FROM taggable_tags t LEFT JOIN taggable_taggables tt ON tt.tag_id=t.tag_id WHERE tt.taggable_type IS App\Job GROUP BY t.tag_id ORDER BY taggable_count DESC LIMIT 10)

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 27 (11 by maintainers)

Commits related to this issue

Most upvoted comments

problem found. config/database.php change mysql -> strict to false

Fix coming shortly: version 3.2.1 (for Laravel 5.5) and 3.1.1 (for L5.4).