PHP code example of dynamikasolucoesweb / laravel-responsive-menu
1. Go to this page and download the library: Download dynamikasolucoesweb/laravel-responsive-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/ */
dynamikasolucoesweb / laravel-responsive-menu example snippets
$menuTree = [
[
'label' => 'Institucional',
'url' => '/quem-somos',
'target' => '_self',
'items' => [
[
'label' => 'Nossa História',
'url' => '/historia',
'target' => '_self',
'items' => []
],
[
'label' => 'Equipe',
'url' => '/equipe',
'target' => '_self',
'items' => []
],
]
],
[
'label' => 'Serviços',
'url' => '/#',
'target' => '_self',
'content' => '<p>Texto customizado ou HTML</p>', // Conteúdo opcional
'items' => [
[
'label' => 'Desenvolvimento Web',
'url' => '/dev',
'target' => '_blank',
'content' => '<p>Texto customizado ou HTML</p>', // Conteúdo opcional
'items' => []
],
[
'label' => 'Design',
'url' => '/design',
'target' => '_self',
'items' => []
],
]
]
];