Support the ongoing development of Laravel.io →
posted 10 years ago
Eloquent
Last updated 2 years ago.
0

That would be

$user = User::find(1);
$user->isSoftDeleting();

It's all in the code, btw. A quick look would've given you the answer.

Last updated 2 years ago.
0

Wow, that's excatly what I did now, before checking my post again and seeing yours. There's even a setter (setSoftDeleting).

Thanks!

Note to myself: Stop being lazy, look into the code!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.