rtconner / laravel-tagging

Tag support for Laravel Eloquent models - Taggable Trait
MIT License
882 stars 168 forks source link

soft delete #202

Closed mohammadremoradi closed 2 years ago

mohammadremoradi commented 2 years ago

im using soft delete for articles

when i restore the articles all the tags is deleted

can you help me with that please

casperwilkes commented 2 years ago

Check the documentation. There is a config value: config/tagging.php: 'untag_on_delete' => true,

mohammadremoradi commented 2 years ago

Hello bro

It is true but when a article will be a soft delete and I return it all the articles tag will be delete

From: Casper Wilkes Sent: Sunday, December 5, 2021 7:22 PM To: rtconner/laravel-tagging Cc: mohammadremoradi; Author Subject: Re: [rtconner/laravel-tagging] soft delete (Issue #202)

Check the documentation. There is a config value: config/tagging.php: 'untag_on_delete' => true, — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

rtconner commented 2 years ago

The setting from @casperwilkes is the only setting. If you have that set to false already then the tags would not be deleted when you delete your model.