Installation and Setup

Basic installation

You can install the menu package via composer:

composer require spatie/menu


If you’re in a Laravel environment, you’ll want to require laravel-menu instead:

composer require spatie/laravel-menu

If you use Laravel version lower than 5.5 and you want to use a facade, you’ll need to register the service provider and facade class names (these are both optional):

// config/app.php

'providers' => [
    // ...

'aliases' => [
    // ...
    'Menu' => Spatie\Menu\Laravel\Facades\Menu::class,