Skip to content

Releases: Lecturize/Laravel-Taxonomies

v1.2.0

04 Jun 16:34
Compare
Choose a tag to compare

Removed the Taxable model, you should create a custom Taxonomy model in your project that extends Lecturize\Taxonomies\Models\Taxonomy and contain your project-specific morphedByMany relations, e.g. posts. Don't forget to override the config value of config('lecturize.taxonomies.taxonomies.model') accordingly.

On the taxable pivot table a primary key has been added, make sure you have no duplicates in that table before publishing and running the new migrations! Also, timestamps have been added to the pivot table.

If you are using the get_categories_collection() or build_categories_collection_from_tree() helper function or Taxonomy::getTree() review the slightly adapted signatures. Instead of a taxables class (e.g. \Post:class) through the $taxable argument, we now ask for a $taxable_relation (e.g. the posts relation on your custom taxonomy model). If you continue to pass a class name like \Post:class we'll try and guess the relation by using Str::plural().

v1.1.1

16 May 18:13
Compare
Choose a tag to compare
Tweak dependencies

v1.1.0 - PHP 8 & Laravel 8/9

16 May 18:04
Compare
Choose a tag to compare

Updated dependencies to PHP 8 and Laravel 8/9 - for older versions please refer to v1.0. Added new columns like content, lead, meta_desc, visible and searchable to taxonomies table. Renamed the term scope on the Taxonomy model to byTerm to avoid confusion with its term relationship method.

v1.0.5

27 Jun 17:50
Compare
Choose a tag to compare
v1.0.5 Pre-release
Pre-release
Fix typo in file name, update class name in service provider

v0.1.1

09 Feb 18:51
Compare
Choose a tag to compare
v0.1.1 Pre-release
Pre-release
Add finder and getter trait