Skip to content

Get groups values by partial group name or regex pattern and optional settings class member #271

Closed Answered by lanea07
lanea07 asked this question in Q&A
Discussion options

You must be logged in to vote

Well, I guess I answered myself all the questions. Finally (and I didn't know values field where JSON type) I found a way to keep a single group and create all value names and payload together:

return new class extends SettingsMigration
{
    public function up(): void
    {
        {...}

        $this->migrator->inGroup('Admin::Sidebar::Items', function (SettingsBlueprint $blueprint) {

            $blueprint->add('customers', [
                'module_name' => 'customers',
                'display_name' => 'Clientes',
                'required_permission' => 'viewAny_customer',
                'action' => 'customer',
                'icon1' => 'pi-address-book',
            ]);
       …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lanea07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant