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

Braid Laravel Package

njpanderson/braid

Braid is a Laravel package for building flexible, reusable navigation structures with a simple API. It helps you define items, manage active states, and render clean Blade markup, keeping menus and site navigation consistent and easy to maintain.

View on GitHub
Deep Wiki
Context7

A pattern library tool for Laravel / Livewire

Frequently asked questions about Braid
What is njpanderson/braid used for in Laravel?
Braid is a Laravel package for defining flexible, reusable navigation structures such as menus and site navigation. It lets you define items, manage active states, and render clean Blade markup so navigation stays consistent and easy to maintain. It is aimed at Laravel and Livewire applications that want a simple API instead of hand-building menu logic in every view.
How do I install Braid in a Laravel application?
Install the package with Composer using composer require njpanderson/braid, then follow the package README for any service provider, configuration, or asset publishing steps. Because this is an early-stage 0.x package, pin the version you install and commit composer.lock. Clear cached config and views after installation if your application uses those caches.
Does Braid support Livewire?
Braid is described as a pattern library tool for Laravel and Livewire, so it is intended to fit Livewire-based Laravel applications. Its navigation rendering is Blade-oriented, which works naturally alongside Livewire components. Confirm the exact Livewire version support in the package Composer constraints before adopting it.
Which Laravel versions are supported by Braid?
The provided package context does not list specific Laravel or PHP version constraints, so check the package composer.json and README for the supported versions. Treat early 0.x releases as potentially changing and verify compatibility against your target Laravel version before installing. If you are on a recent Laravel release, test Braid in a staging branch first.
How do I define navigation items with Braid?
Braid provides a simple API for defining navigation items instead of hard-coding menu arrays directly in Blade templates. You typically define the items in PHP and then render them through the package Blade markup. See the README for the exact item API and available options.
How does Braid handle active navigation states?
Braid is designed to manage active states for navigation items so the current page or section can be reflected in your menus. This keeps active-state logic centralized instead of scattered across Blade conditionals. Check the package documentation for how active matching is configured for your routes.
Can I customize the Blade markup rendered by Braid?
Braid is built to render clean Blade markup for navigation structures, and Laravel packages commonly allow view customization or publishing. Review the README for view publishing and override instructions before changing the output. If you override views, pin the package version and regression-test after updates.
Is Braid suitable for production Laravel applications?
Braid can be used in production if its documented Laravel and Livewire constraints match your stack and you pin a tested version. Because it is a 0.x package, review release notes and test navigation behavior after each update. For critical applications, evaluate maintenance activity and test coverage before relying on it.
How do I test navigation built with Braid?
Test the underlying route and active-state behavior with Laravel feature tests, and assert that the rendered Blade output contains the expected menu items and active classes. Keep tests around any custom views or configuration overrides. Running these tests in CI helps catch changes after Composer updates.
What are alternatives to Braid for Laravel navigation menus?
Alternatives include building a small navigation helper or Blade component yourself, or using broader Laravel menu packages. Braid's differentiator is its focused API for reusable navigation items, active states, and Blade rendering in Laravel and Livewire applications. Evaluate alternatives against your need for Livewire compatibility and simple Blade output.
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