Laravel backpack overwrite update blade file for just one CRUD #1009
-
@if ($crud->hasAccess('update', $entry) && !$entry->trashed()) I cannot find
Is it possible to display the soft-deleted entries in the show operation ? laravel: 8.x Backpack: 5.x |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@blessen131 I think I answered you (or someone with a similar question) on stackoverflow. I am afraid in 5.x we didn't had In that case you are in the right direction:
protected function setupListOperation()
{
// ... your columns, filters etc
CRUD::modifyButton('update', ['content' => 'crud::buttons.update_trashed']);
// you can place the new button wherever you want, as long as you provide the proper view path here.
} About the We are not providing bug fixes for v5 for a long time, so if it's actually a bug a not some problem with your implementation, i'd suggest you take the same approach, publish the backpack view to your resources folder, fix it and use it in your project. A blank page is weird, maybe you have some errors in Cheers |
Beta Was this translation helpful? Give feedback.
@blessen131 I think I answered you (or someone with a similar question) on stackoverflow.
I am afraid in 5.x we didn't had
setAccessCondition()
that would allow us to change the visibility without having to overwrite the views.In that case you are in the right direction:
update_trashed
or something different than the originalupdate
name so it does not overwrite the original button in other Controllers).