subcom/twill-menu

v1.0.7 2022-10-05 15:32 UTC

This package is not auto-updated.

Last update: 2024-04-17 23:30:50 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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

Support us

Installation

Project setup

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

composer require subcom/twill-menu

Config setup

  1. Add this to config/twill.php inside block_editor:
'directories' => [

            'source' => [

                'blocks' => [

                    'menu' => [

                        'title' => 'Menu',
                        'icon' => 'quote',
                        'component' => 'a17-block-menu',
                        'path' => base_path('vendor/subcom/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/subcom/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.

Contributing

Please see CONTRIBUTING for details.

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.