c4meleon/twill-menu

v1.0.1 2022-11-02 21:06 UTC

This package is not auto-updated.

Last update: 2024-04-19 12:25:26 UTC


README

This a package build with laravel and twill to add menu module.

Support us

Installation

Project setup

To install twill-menu package and all dependecies run the command below and follow the instructions:

composer require c4meleon/twill-menu

Config setup

  1. Add this to config/twill.php inside block_editor:
return [
    ...
    'block_editor' => [
        'directories' => [
            'source' => [
                'blocks' => [
                    'menu' => [
                        'title' => 'Menu',
                        'icon' => 'quote',
                        'component' => 'a17-block-menu',
                        'path' => base_path('vendor/c4meleon/twill-menu/src/Twill/Capsules/Menus/resources/views/admin/blocks'),
                        'source' => A17\Twill\Services\Blocks\Block::SOURCE_TWILL,
                    ],
                ],
            ],
        ],
        'repeaters' => [
            'menu-item' => [
                'title' => 'Aggiungi link',
                'trigger' => 'Aggiungi sottovoce',
                'component' => 'a17-block-menu-item',
                'path' => base_path('vendor/c4meleon/twill-menu/src/Twill/Capsules/Menus/resources/views/admin/blocks'),
                'source' => A17\Twill\Services\Blocks\Block::SOURCE_TWILL,
            ],
        ],
    ]
    ...
];
  1. Run command:
php artisan optimize
  1. Run command:
php artisan route:trans:clear
  1. Run command:
php artisan vendor:publish --tag="twill-menu-config"
  1. Publish files: If you want to make changes use command bellow but you have to make changes in config to use twill default
php artisan vendor:publish --tag="twill-menu-views"
php artisan vendor:publish --tag="twill-menu-controller"

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.