PHP code example of juanintorres / menu-elements

1. Go to this page and download the library: Download juanintorres/menu-elements 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/ */

    

juanintorres / menu-elements example snippets


...
'providers' => [
    Juanintorres\MenuElement\MenuElementServiceProvider::class,
],
...
'aliases' => [
    'MenuElement'   => Juanintorres\MenuElement\MenuElement::class,
]

Route::get('home', [
    'as' => 'home_path',
    'uses' => 'HomeController@index'
]);
Route::get('contacto', [
    'as' => 'contact_path',
    'uses' => 'ContactController@index'
]);
bash
php artisan vendor:publish --force