Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

KbirMhrjn's avatar

Any idea on extending SoftDeletingTrait just so that the future deleted date is not excuded

Currently, in Laravel when using softdelete it sets the

deleted_at 

column to current timestamp and the results are excluded from the future Eloquent queries. Do you guys have any idea so that if we set

deleted_at 

column to future date and when we query the result is not excluded up until to that set date. Any ideas?

0 likes
1 reply

Please or to participate in this conversation.