PHP code example of laralabs / menu
1. Go to this page and download the library: Download laralabs/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/ */
laralabs / menu example snippets
php artisan vendor:publish --tag=laralabs-menu-config
public function build(): void
{
$this->menu->group('groupOne', static function (Group $group) {
$group->item('Group One, Item One', function (Item $item) {
$item->subItem('Sub Item');
});
});
}