Search by

Public site navigation and multi-menu builder with drag-and-drop Tree and forever caching.

Package info

github.com/LaveroAdmin/menus

pkg:composer/laveroadmin/menus

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-11-26 06:37 UTC

This package is auto-updated.

Last update: 2026-11-26 07:04:56 UTC


README

Build and manage public site navigation menus (header, footer, sidebar, etc.) with drag-and-drop hierarchy and permanent caching.

Requirements

  • PHP >= 8.1
  • laveroadmin/laveroadmin: ^1.0

Installation

composer require laveroadmin/menus
php artisan migrate
php artisan admin:import menus

Usage

Use the site_menu() helper in Blade templates:

@foreach(site_menu('header') as $item)
    <a href="{{ $item['url'] }}" target="{{ $item['target'] }}">{{ $item['title'] }}</a>
@endforeach

Features

  • Multiple named menus (site_menus and site_menu_items tables)
  • Nested drag-and-drop item ordering, icons, target, and visibility controls
  • Cached forever via Cache::rememberForever with automatic invalidation on save/delete
  • Full English and Russian localization

License

The MIT License (MIT). See LICENSE.