generated from spatie/package-skeleton-laravel
    
        
        - 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 272
 
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Unexpected shift of the defined custom permissions in config to be snake case after saving the RoleResource to attach permissions to the role. This is a problem as it changes the expected key for the role identifier and breaks convention of other saved permissions.
To Reproduce
Steps to reproduce the behavior:
- Seed custom permissions into the database
 - Go to the Role Resource and edit a role
 - Select custom permissions and click save
 - The 
permissionstable will show the new snake case permissions having overwritten the old ones. 
Screenshots
defined custom permissions in config/filament-shield.php

"offending code" https://github.com/bezhanSalleh/filament-shield/blame/c504c661b72c9cc07cd2090ca605f82f86aea4f4/src/Concerns/HasEntityTransformers.php#L79

after saving the attached permissions to role

please complete the following information:
- OS: Laravel Herd (PHP 8.3)
 - Filament 4.0
 - Version 4.0.2
 
mis-kcn
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working