laveroadmin / menus
Public site navigation and multi-menu builder with drag-and-drop Tree and forever caching.
v1.0.0
2026-11-26 06:37 UTC
Requires
- php: >=8.1
- laveroadmin/laveroadmin: ^1.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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_menusandsite_menu_itemstables) - Nested drag-and-drop item ordering, icons, target, and visibility controls
- Cached forever via
Cache::rememberForeverwith automatic invalidation on save/delete - Full English and Russian localization
License
The MIT License (MIT). See LICENSE.