I am trying to hide edit
and update
button from trashed items but getting error ‘Method BackpackCRUDappLibraryCrudPanelCrudPanel::setAccessCondition does not exist.’
backpack: 5.x
Laravel: 8.x
public function setupTrashOperation()
{
CRUD::setOperationSetting('withTrashFilter', false);
CRUD::setAccessCondition(['update', 'show'], function($entry) {
return ! $entry->trashed();
});
}