subcom / twill-menu
A twill package
v1.0.7
2022-10-05 15:32 UTC
Requires
- area17/twill: ^2.8.8
- mcamara/laravel-localization: ^1.7
README
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
- 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, ], ],
- Run command:
php artisan optimize
- Run command:
php artisan route:trans:clear
- Run command:
php artisan vendor:publish --tag="twill-menu-config"
- 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.