PHP code example of karim-qaderi / zoroaster-menu-builder

1. Go to this page and download the library: Download karim-qaderi/zoroaster-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/ */

    

karim-qaderi / zoroaster-menu-builder example snippets


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

//or

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

{!! menu_json('main') !!}

/**
 * Bootstrap any application services.
 *
 * @return void
 */
protected function boot()
{
    Gate::define('ZoroasterMenuBuilder', function ($user) {
        return in_array($user->email, [
            '[email protected]',
        ]);
    });
}
bash
composer  vendor:publish --tag=menu-builder-migration
php artisan migrate

php artisan vendor:publish --tag=menu-builder-assets