src/Group/Permission.php
public static function map()
    {
        $permissions = [];

        foreach (static::get() as $permission) {
            $permissions[$permission->permission][] = (string) $permission->group_id;
        }

        return $permissions;
    }
public static function map()
    {
        $permissions = [];

        foreach (static::get() as $permission) {
            $permissions[$permission->permission][] = (string) $permission->group_id;
        }

        return $permissions;
    }
public static function map ( ) { $ permissions = [ ] ; foreach ( static :: get ( ) as $ permission ) { $ permissions [ $ permission -> permission ] [ ] = ( string ) $ permission -> group_id ; } return $ permissions ; }
Get a map of permissions to the group IDs that have them.

@return array[]
Get a map of permissions to the group IDs that have them .