This is the Laravel version of our menu package adds some extras like convenience methods for generating URLs and macros. Virtually every website displays some sort of menu. Generating html menus might seem simple, but it can become complex very quickly. Not only do you have to render some basic html, but you also have to manage which item is active. If a menu has a submenu you'll also want the parents of an active item to be active. Sometimes you want to insert some html between menu items. There are some packages out there that can help generating menus, but most of them have a messy API or have become victims of feature creep. That's why we decided to create our own modern menu package that has a beautiful API to work with. We have provided full documentation containing lots of examples. In this post I'd like to walk you through it. The spatie/menu package provides a fluent interface to build menus of any size in your php application.

Features

  • Human Readable, Fluent Interface
  • Strong Control Over the Html Output
  • Add an ID to elements
  • Not Afraid of Depths
  • Some Extra Treats for Laravel Apps
  • Licensed under the MIT License

Project Samples

Project Activity

See All Activity >

Categories

HTML/XHTML

License

MIT License

Follow Html Menu Generator for Laravel

Html Menu Generator for Laravel Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Html Menu Generator for Laravel!

Additional Project Details

Programming Language

PHP

Related Categories

PHP HTML XHTML

Registered

2023-05-03