mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
581 B
581 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| You can call `withTrashed()` on a route to accept soft deleted models | 1512463792432566274 | weekly-thread-2022-14 | cosmeescobedo |
|
2022-04-08T16:14:02+00:00 | you-can-call-withtrashed-on-a-route-to-accept-soft-deleted-models |
🔥 Laravel Tip: Route model binding soft-deleted models
By default, when using route model binding will not retrieve models that have been soft-deleted.
You can change that behavior by using withTrashed in your route.