Voyager: Soft delete Admin

Created on 6 Nov 2017  路  4Comments  路  Source: the-control-group/voyager

Description:

Hi thank you it was really simple to get the soft delete working
the problem is that i cannot load the deleted items in the admin panel!!
i need to restore some items or edit them!!

as u can see the table is empty but in the DB i already have some deleted products!

enhancement help wanted open for suggestions

Most helpful comment

Voyager doesn't add withTrashed() to it's queries. We need to add a UI element to allow toggling that. I'm open for Pull Requests if anyone else wants to take a stab at it.

All 4 comments

Voyager doesn't add withTrashed() to it's queries. We need to add a UI element to allow toggling that. I'm open for Pull Requests if anyone else wants to take a stab at it.

I can jump on this.

I'm thinking of a "View Deleted" bootstrap toggle near the existing Add New / Bulk Delete / Order buttons at the top of the browse view. This would appear only for models that use SoftDeletes. Clicking the toggle will redirect the user to ?withTrashed or similar and reload the page. When the page loads, if the toggle is on, the controller query will use ->withTrashed(), if it is off it will not.

Should I branch off of 1.1?

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vaggelis2018 picture vaggelis2018  路  3Comments

raoasifraza1 picture raoasifraza1  路  3Comments

craigb88 picture craigb88  路  3Comments

rayqiri picture rayqiri  路  3Comments

winex01 picture winex01  路  3Comments