PHP code example of subcom / twill-menu

1. Go to this page and download the library: Download subcom/twill-menu library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

subcom / twill-menu example snippets


composer 

'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,
            ],

        ],

php artisan vendor:publish --tag="twill-menu-views"
php artisan vendor:publish --tag="twill-menu-controller"
bash
php artisan optimize
bash
php artisan route:trans:clear
bash
php artisan vendor:publish --tag="twill-menu-config"