Closed mariovillani closed 11 months ago
Hello there! Thanks for opening your first issue on this repo!
Just a heads-up: Here at Backpack we use Github Issues only for tracking bugs. Talk about new features is also acceptable. This helps a lot in keeping our focus on improving Backpack. If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below). If you're not sure where it fits, it's ok, a community member will probably reply to help you with that.
Backpack communication mediums:
backpack-for-laravel
tag;Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or Stackoverflow is thanks to our awesome awesome community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch.
Thank you!
-- Justin Case The Backpack Robot
Hey @MarioVillani I think I got your request, thanks for it š
Unfortunately checklist_dependency
is not as flexible as a regular select, it does its own query and parsing of the results in the field itself to build the dependency list. https://github.com/Laravel-Backpack/CRUD/blob/4c7030524540d34ca32db367a48ae03d34c14505/src/resources/views/crud/fields/checklist_dependency.blade.php#L21
I'd recommend you overwrite this field and do your customization. We don't plan to add new features in this field, actually if something we may have ahead in the road plan is to rewrite this field into a more general component.
If you want to keep both fields (the core and the custom) you can just create a field with a different name starting from the checklist dependency, with: php artisan backpack:field checklist_dependency_custom --from=checklist_dependency
.
Closing this, please feel free to continue the conversation or re-open if you think I am wrong.
Hope that helps š
Hello, Is there a way to filter out selectable roles/permissions in the CRUD view of the UserCrudController? In my application, permissions and roles that are available to choose when an user is created/updated via Backpack change by checking current user's authorizations.
I expect to add in the //SOME OPTIONS comment section:
Something like the "options" field for the type "select" CRUD::field to filter out results:
But seems like nothing like that is implemented. Any ideas on how to do that? Thanks in advance.