Laravel Route Label

README.md

Laravel Route Label

A tiny Laravel package that lets you attach human‑friendly labels to your routes and use them in views via a helper or a Blade directive.

  • Route macro: ->label('My Label') (supports string‑backed Enums)
  • Localizing the label You can also pass a translatable string ->label(__('MyLabel')) or key ->label(__('routes.home')) for a label
  • Helper: routeLabel('route.name') → label or route name fallback
  • Blade directive: @routeLink('route.name')<a href="/...">Label</a>
  • Extended Blade directive: @routeLink('route.name', ['class' => 'btn', 'wire:navigate' => true]) → enhanced <a> tag with custom attributes
  • Block Blade directives: @routeLinkStart('route.name', ['attributes']) ... @routeLinkEnd → for complex link content
  • Blade component: <x-route-link route="route.name" />

Requirements

  • PHP: 8.3, 8.4
  • Laravel: 10.x, 11.x, 12.x, 13.x (Illuminate Support/View/Routing)

Related Packages

laravel-gdpr-exporter.php

Laravel GDPR Exporter

Professional Laravel package ensuring GDPR compliance through automated user data exports in JSON, CSV, XML, and HTML formats. Features Livewire components, progress tracking, email notifications, and data anonymization options. Simplifies privacy regulation compliance for European market applications and user data management.

laravel-email-change-confirmation.php

Laravel Email Change Confirmation

Enterprise-grade Laravel package implementing secure email change workflows with dual confirmation system. Features fraud prevention, rate limiting, email verification, rollback capabilities, and audit trails. Protects user accounts from unauthorized access while maintaining seamless user experience in authentication systems.

laravel-simple-datatables-and-forms.php

Laravel Simple Data Tables And Forms

Streamlined Laravel Livewire package for building dynamic, searchable data tables and feature-rich forms. Offers advanced filtering, sorting, pagination, bulk actions, and real-time validation without page refreshes. Ideal for admin panels, dashboards, CRUD interfaces, and data management applications requiring responsive user interactions.

laravel-blacklist.php

Laravel Blacklist

Advanced Laravel validation package providing intelligent content filtering with customizable blacklists, profanity detection, and whole-word matching algorithms. Prevents spam, inappropriate content, and system abuse while avoiding false positives. Essential for user-generated content, comments, forums, and social platforms.