PHP code example of acitjazz / main-menu
1. Go to this page and download the library: Download acitjazz/main-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/ */
acitjazz / main-menu example snippets
return [
...
'menus' => MenuRepository::getByLocation('Header'),
...
];
bash
php artisan vendor:publish --tag="main-menu-migrations"
php artisan migrate
bash
php artisan migrate --path=vendor/acitjazz/main-menu/database/migrations
bash
php artisan vendor:publish --tag="menu-assets"