Repository navigation
(docs) ORM: soft deletes via #[SoftDeletes] - #105
Merged
Merged
Conversation
- New Soft Deletes page: enabling the attribute, migration columns, deleting, querying (withTrashed, onlyTrashed, withoutTrashed), restoring, force deleting, relationships, hooks, Temporal ORM integration and utility methods - Hooks: before_restored / after_restored events; delete hooks fire on soft and force deletes - Temporal ORM: 'restored' history action and restoreTo() with soft deletes - Entity ORM and Migrations: link to the new page
Member
|
@abdulmajidcse thanks for following doppar convetion for writing docs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Docs for doppar/framework#354 (soft deletes via
#[SoftDeletes]).Changes
New page:
versions/4.x/soft-deletes.md#[SoftDeletes]/#[SoftDeletes(column: 'removed_at')]softDeletes(),softDeletesTz()anddropSoftDeletes()delete(), bulkdelete()andpurge()withTrashed(),onlyTrashed()andwithoutTrashed();ORconditions cannot bypass the constraintrestore()) and permanently deleting (forceDelete()) on models and queriespresent(),absent(),ifExists(),whereLinked()skip trashed rows, withwithTrashed()/onlyTrashed()inside the callbackUpdated pages
hooks.md:before_restored/after_restoredevents, delete hooks on soft and force deletes, skipping hooks on restoretemporal-orm.md:restoredhistory action, time travel andrestoreTo()on soft-deletable modelsentity-orm.md,migrations.md: links to the new pageNote
The new page needs a "Soft Deletes" entry in the site navigation, which is not part of this repo.