PHP code example of catalejo / menuelement

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

    

catalejo / menuelement example snippets


...
'providers' => [
    'Catalejo\MenuElement\MenuElementServiceProvider',
],
...
'aliases' => [
    'MenuElement'   => 'Catalejo\MenuElement\MenuElement',
]

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