All notable changes to laravel-tags
will be documented in this file
- chore!: Dropped support for translation via JSON fields
BREAKING CHANGE: removes all functionality relating to translation / locale support
- docs: update the contents of the published config file by @alexrififi in spatie/laravel-tags#506
- Fix Test Badge by @askdkc in spatie/laravel-tags#510
- Fixed links to documentation pages by @sertxudev in spatie/laravel-tags#512
- Bump dependabot/fetch-metadata from 1.6.0 to 2.1.0 by @dependabot in spatie/laravel-tags#504
- Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 by @dependabot in spatie/laravel-tags#515
- Added support for translation via JSON fields for PostgreSQL by @CheesyTech in spatie/laravel-tags#509
- bugfix: fixes the syncWithType method to avoid deleting tags without … by @stanbridge-wcorrea in spatie/laravel-tags#511
- Add "hasTag" method to check if the model has a certain tag by @jimmitjoo in spatie/laravel-tags#517
- Document the
hasTag
method by @AlexVanderbist in spatie/laravel-tags#519
- @alexrififi made their first contribution in spatie/laravel-tags#506
- @askdkc made their first contribution in spatie/laravel-tags#510
- @sertxudev made their first contribution in spatie/laravel-tags#512
- @CheesyTech made their first contribution in spatie/laravel-tags#509
- @stanbridge-wcorrea made their first contribution in spatie/laravel-tags#511
- @jimmitjoo made their first contribution in spatie/laravel-tags#517
Full Changelog: https://github.com/spatie/laravel-tags/compare/4.6.1...4.7.0
- Allow Carbon v3 by @mokhosh in spatie/laravel-tags#496
Full Changelog: https://github.com/spatie/laravel-tags/compare/4.6.0...4.6.1
- Add laravel 11 support by @mokhosh in spatie/laravel-tags#493
Full Changelog: https://github.com/spatie/laravel-tags/compare/4.5.2...4.6.0
- Bump stefanzweifel/git-auto-commit-action from 4 to 5 by @dependabot in spatie/laravel-tags#485
- Bump actions/checkout from 3 to 4 by @dependabot in spatie/laravel-tags#480
- fix: set public visibility for findOrCreateFromString by @KnightYoshi in spatie/laravel-tags#491
- fix: Fixing issue when using a different table to store pivot data by @jordanmiguel in spatie/laravel-tags#492
- @KnightYoshi made their first contribution in spatie/laravel-tags#491
- @jordanmiguel made their first contribution in spatie/laravel-tags#492
Full Changelog: https://github.com/spatie/laravel-tags/compare/4.5.1...4.5.2
- Define class MorphPivot as default for the 'tags.taggable.class_name' config getter. by @eggnaube in spatie/laravel-tags#476
Full Changelog: https://github.com/spatie/laravel-tags/compare/4.5.0...4.5.1
- Bump dependabot/fetch-metadata from 1.4.0 to 1.5.0 by @dependabot in spatie/laravel-tags#461
- Bump dependabot/fetch-metadata from 1.5.0 to 1.5.1 by @dependabot in spatie/laravel-tags#462
- Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 by @dependabot in spatie/laravel-tags#466
- changed deleteTags to deleteTag where appropriate by @titonova in spatie/laravel-tags#469
- Add the ability to configure a custom Taggables model class by @eggnaube in spatie/laravel-tags#470
- @eggnaube made their first contribution in spatie/laravel-tags#470
Full Changelog: https://github.com/spatie/laravel-tags/compare/4.4.0...4.5.0
- Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 by @dependabot in spatie/laravel-tags#444
- Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 by @dependabot in spatie/laravel-tags#457
- Configable taggables morph table by @silnex in spatie/laravel-tags#458
- @silnex made their first contribution in spatie/laravel-tags#458
Full Changelog: https://github.com/spatie/laravel-tags/compare/4.3.7...4.4.0
- Return slugs in find methods by @falconsmilie in spatie/laravel-tags#443
- @falconsmilie made their first contribution in spatie/laravel-tags#443
Full Changelog: https://github.com/spatie/laravel-tags/compare/4.3.6...4.3.7
- support Laravel 10
- Add PHP 8.2 to tests workflow by @patinthehat in spatie/laravel-tags#429
- Add Dependabot Automation by @patinthehat in spatie/laravel-tags#430
- Match locale in example by @CaddyDz in spatie/laravel-tags#435
- Bump actions/checkout from 2 to 3 by @dependabot in spatie/laravel-tags#432
- Switch to anonymous migration and void return type for up method by @ziming in spatie/laravel-tags#440
- Method for reversing migrations by @eimantaaas in spatie/laravel-tags#442
- @CaddyDz made their first contribution in spatie/laravel-tags#435
- @dependabot made their first contribution in spatie/laravel-tags#432
- @ziming made their first contribution in spatie/laravel-tags#440
- @eimantaaas made their first contribution in spatie/laravel-tags#442
Full Changelog: https://github.com/spatie/laravel-tags/compare/4.3.5...4.3.6
- Add without tags scope by @stfndamjanovic in spatie/laravel-tags#428
- @stfndamjanovic made their first contribution in spatie/laravel-tags#428
Full Changelog: https://github.com/spatie/laravel-tags/compare/4.3.4...4.3.5
- change phpunit to pest testing framework by @uthadehikaru in spatie/laravel-tags#423
- Fix typos in the docs by @ahmad-moussawi in spatie/laravel-tags#425
- Fixed Collection support in syncTags function and added regression test by @zupolgec in spatie/laravel-tags#427
- @uthadehikaru made their first contribution in spatie/laravel-tags#423
- @ahmad-moussawi made their first contribution in spatie/laravel-tags#425
Full Changelog: https://github.com/spatie/laravel-tags/compare/4.3.3...4.3.4
- Added support for strings and corresponding tests by @zupolgec in spatie/laravel-tags#395
- @zupolgec made their first contribution in spatie/laravel-tags#395
Full Changelog: https://github.com/spatie/laravel-tags/compare/4.3.2...4.3.3
- Added example of getting all the tags of a model by @titonova in spatie/laravel-tags#394
- Update using-tags.md typo by changing "Find" to "find" by @jorgemurta in spatie/laravel-tags#401
- readme: add example apply trait by @erlangparasu in spatie/laravel-tags#403
- Update .gitattributes to decrease package installed size by @lakuapik in spatie/laravel-tags#407
- @titonova made their first contribution in spatie/laravel-tags#394
- @jorgemurta made their first contribution in spatie/laravel-tags#401
- @erlangparasu made their first contribution in spatie/laravel-tags#403
- @lakuapik made their first contribution in spatie/laravel-tags#407
Full Changelog: https://github.com/spatie/laravel-tags/compare/4.3.1...4.3.2
- Fix BadMethodCallException caused by attach() by @umairparacha00 in spatie/laravel-tags#389
- Ignore the
phpunit.xml
file by default by @markwalet in spatie/laravel-tags#362 - Fixed the docs by @umairparacha00 in spatie/laravel-tags#390
- Add support for spatie/laravel-translatable:^6.0 by @dsturm in spatie/laravel-tags#391
- @umairparacha00 made their first contribution in spatie/laravel-tags#389
- @markwalet made their first contribution in spatie/laravel-tags#362
- @dsturm made their first contribution in spatie/laravel-tags#391
Full Changelog: https://github.com/spatie/laravel-tags/compare/4.3.0...4.3.1
- allow Laravel 9
- enable and fix test by @delta1186 in spatie/laravel-tags#373
- Fix find from string of any type by @delta1186 in spatie/laravel-tags#375
Full Changelog: https://github.com/spatie/laravel-tags/compare/4.2.0...4.2.1
- Make convertToTags() method $values arg support Tag instance by @chuoke in spatie/laravel-tags#371
- @chuoke made their first contribution in spatie/laravel-tags#371
Full Changelog: https://github.com/spatie/laravel-tags/compare/4.1.0...4.2.0
- Adding a static function for current locale to the tag by @leonidlezner in spatie/laravel-tags#368
- @leonidlezner made their first contribution in spatie/laravel-tags#368
Full Changelog: https://github.com/spatie/laravel-tags/compare/4.0.5...4.1.0
- PHP 8.1 Support by @sergiy-petrov in spatie/laravel-tags#361
- Update installation-and-setup.md by @PatrickJunod in spatie/laravel-tags#365
- Remove extra ordered on getWithType by @delta1186 in spatie/laravel-tags#367
- @sergiy-petrov made their first contribution in spatie/laravel-tags#361
- @PatrickJunod made their first contribution in spatie/laravel-tags#365
- @delta1186 made their first contribution in spatie/laravel-tags#367
Full Changelog: https://github.com/spatie/laravel-tags/compare/4.0.4...4.0.5
- get the tag model table name when syncing tags (#351)
- allow eloquent-sortable v4
- update deps
- fix translatable attributes (#300)
- drop support for all PHP versions below 8.0
-add tag_model
config variable (#301)
- Get all registered tag types (#296)
- add support for PHP 8
- drop support for anything below Laravel 8
- add
HasFactory
to tags model.
- add support for Laravel 8
- avoid duplicate error on syncTagsWithType (#274)
- allow specifying type when using
attachTags()
ordetachTags()
(#273)
- change mutator behaviour: use sync instead of attach (#260)
- add support for Laravel 7
- make sure each tag is unique on the database level (#251)
- use
morphs
in migration
findOrCreateFromString
can now be overloaded (#231)
- make
scopeContaining
compatible with Postgresql
- add support for Laravel 6
- fix
scopeWithAllTags
* scopes
- use
ordered()
scope to determine order column name (#193)
- fix
str_slug
being deprecated
- added ability to work with multibyte charset
- performance enhanchements
- add
tagsTranslated
- drop support for Laravel 5.7 and below
- drop support for PHP 7.1 and below
- add support for Laravel 5.8
- use morph map name for taggable_type if it exists
- add
scopeWithAllTagsOfAnyType
andscopeWithAnyTagsOfAnyType
- update deps
- fix for locales with hypens in their name
- use
getTable()
instead of$table
in the scope
- fix for
withAnyTags
- add support for laravel-translatable v3
- improve performance
- add
containing
scope
- add L5.7 compatibility
- add L5.6 compatibility
- added compatiblity with Laravel 5.5, dropped support for all older versions
- renamed config file from
laravel-tags
totags
- deleting a model with tags will now delete related records in the
taggables
table
- add
syncWithType
- allow the name of a tag to be set by changing the name property
- fix bug where the same tag would be created multiple times
- removed typehint from HasTags::convertToTags to allow and instance of
Tag
to be passed in
- remove classmap from
composer.json
THIS VERSION IS BROKEN, DO NOT USE
- fix missings deps
THIS VERSION IS BROKEN, DO NOT USE
- add compatibility with Laravel 5.4
- the
withAllTags
andwithAnyTags
scopes now optionally accept atype
- fix bug where a custom tag model would not be used in
tags()
- The function that determines the value of the slug can now be modified in the config file
- fixed bug in
attachTag
where using aTag
model would be converted to a string
- fix migration path in service provider
- initial release