Closed Frisbeetarian closed 4 years ago
Yes it is supported. Which version of NE you are using?
The syntax should be something like this, where you can change forceDelete()
to any execution methods (e.g. get, first, firstOrFail, etc.):
$this->model->withTrashed()->where('id', '1234567')->forceDelete();
Using version 1.3.2. Odd as I'm rooting through the query builder and can't seem to find the withTrashed method.
I'm trying to perform the following query
Profile::withTrashed()->where('id', id)->first();
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Is there support for withTrashed? I'm trying to access soft deleted models and I'm getting
Call to undefined method Vinelab\NeoEloquent\Query\Builder::withTrashed()