PHP code example of infinety-es / nova-menu-builder

1. Go to this page and download the library: Download infinety-es/nova-menu-builder 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/ */

    

infinety-es / nova-menu-builder example snippets


// in app/Providers/NovaServiceProvider.php

// ...

public function tools()
{
    return [
        // ...
        new \Infinety\MenuBuilder\MenuBuilder(),
    ];
}

{!! menu_builder('main') !!}

//or

{!! menu_builder('main', 'parent-class', 'child-class', 'dl', 'dd') !!}

{{ menu_name('main') }}

{!! menu_json('main') !!}
bash
php artisan vendor:publish --tag=menu-builder-migration
php artisan migrate