PHP code example of phpcollective / menumaker
1. Go to this page and download the library: Download phpcollective/menumaker 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/ */
phpcollective / menumaker example snippets
php
PhpCollective\MenuMaker\MenuServiceProvider::class,
bash
$ php artisan menu:install
php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function () {
return view('welcome');
});
Auth::routes();
Route::middleware('menu')->group(function () {
// Your routes will goes here
});