Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 1 year ago.
0

In your character search you are search withTrashed() but on delete, you are doing it without withTrashed().. Why? Eloquent can't delete something that's already soft deleted unless you also include them as deletable.

Last updated 1 year ago.
0

CedNet said:

In your character search you are search withTrashed() but on delete, you are doing it without withTrashed().. Why? Eloquent can't delete something that's already soft deleted unless you also include them as deletable. What?

When I search a character for deletion, it is not already deleted, so I do not include the trashed. When I search for undeletion, I just want the already softdeleted.

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ranisalt ranisalt Joined 10 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.