mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
678 B
678 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| You can add the Prunable trait to soft-delete models from the database, but only remove them permanently after a few days | 1459206733365084161 | weekly-thread-2021-45 | Philo01 |
|
2021-11-12T17:09:30+00:00 | you-can-add-the-prunable-trait-to-soft-delete-models-from-the-database-but-only-remove-them-permanently-after-a-few-days |
Happy Monday 🙌 Let's start the week with a Laravel tip: You can use the Prunable trait to automatically remove models from your database. For example, you can permanently remove soft deleted models after a few days.