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-skeleton.php

Laravel skeleton template

Production-ready Laravel application starter featuring modern architecture, authentication, Tailwind CSS, Livewire, testing, code quality tooling, and scalable development conventions.

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-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-rate-limiting.php

Laravel Rate Limiting

Comprehensive Laravel rate limiting solution featuring intelligent DDoS protection, exponential backoff algorithms, custom throttling rules, and real-time monitoring. Includes Blade components, API protection, brute force prevention, and performance optimization. Essential for high-traffic applications requiring robust security and stability.