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

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.

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.