Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Menus Laravel Package

caffeinated/menus

caffeinated/menus is a Laravel package for creating dynamic, database-driven menus. Build nested items, control ordering, link to routes or URLs, and render configurable menus in Blade with ease.

Deep Wiki
Context7

:pushpin: Menu generator package for the Laravel framework

Frequently asked questions about Menus
How do I install caffeinated/menus in a Laravel app?
Install it with Composer using composer require caffeinated/menus, then publish the package config and views if needed. Laravel package discovery should register the service provider and facade automatically on compatible versions. Run a compatibility spike on your exact Laravel and PHP versions before adopting it for production navigation.
Which Laravel and PHP versions does caffeinated/menus support?
The provided information does not list official Laravel or PHP version constraints, and the last release was 2021-03-24. Check the package's composer.json against your target Laravel and PHP versions and test package discovery, config publishing, view overrides, and route generation. If constraints block your stack, fork and vendor the package with an explicit maintenance owner.
Does caffeinated/menus store menus and menu items in the database?
Yes, caffeinated/menus supports database-backed menus and menu items, including nested, ordered structures. However, it is not a CMS-style menu system with an editorial admin UI; menu definitions are developer-defined rather than editor-managed. Treat it as a rendering and structure layer if you need content-team control.
Can content editors create or reorder menus without a deployment?
No, the package does not appear to provide an editorial UI for content editors to create or reorder menus without a deployment. It is a weak fit when non-developers must own navigation changes. If editors need control, budget for a separate persistence and admin layer, or choose a CMS-style menu solution.
How do I render a menu in Blade with caffeinated/menus?
Define the menu in application code and render it in Blade using the package's Blade helpers and customizable views. Override the package views to match your design system rather than scattering package-specific syntax across templates. Wrapping definition and rendering in an app-owned adapter or view component makes future replacement easier.
How do I link menu items to routes, URLs, or raw HTML?
Menu items can link to routes, URLs, or custom targets, with attribute helpers for common navigation needs. Prefer route names for internal links so URL changes and active-state checks stay manageable. Raw HTML support requires trusted input and an XSS review before you expose it to editors or user data.
Does caffeinated/menus handle active states and nested route matching?
The package provides active-state helpers that cover common navigation patterns. Nested-route active matching is a key behavior to validate in a pilot, especially for primary navigation. Add snapshot and accessibility tests before expanding the menu to footer, sidebar, or account regions.
Is caffeinated/menus maintained and safe for production navigation?
Use caution: the last release was 2021-03-24, the repository is unknown, and the package has 132 stars, which creates abandonment, compatibility, and supply-chain risk. If it drives primary navigation, a breaking upgrade or Blade override can affect every page. Complete source, license, dependency, and security review; pilot behind a feature flag; and keep a fork or custom fallback with a named owner.
Can I use Laravel authorization to control which menu items appear?
Yes, the package is described as integrating with Laravel authorization and application models. Use Gates, policies, or model checks to filter menu items before rendering so users only see permitted destinations. Test authorization filtering alongside active states and nested items.
What are alternatives to caffeinated/menus for Laravel navigation?
Alternatives include custom Blade partials, an app-owned route-based menu builder, or a maintained Laravel menu package that fits your support policy. For API-only, SPA, or Inertia/React navigation, caffeinated/menus is not a natural fit unless you still render server-side shells. Keep an internal menu abstraction so you can swap the package without rewriting every template.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo