Download the PHP package act-training/laravel-breadcrumbs without Composer
On this page you can find all versions of the php package act-training/laravel-breadcrumbs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download act-training/laravel-breadcrumbs
More information about act-training/laravel-breadcrumbs
Files in act-training/laravel-breadcrumbs
Package laravel-breadcrumbs
Short Description A simple and flexible breadcrumb package for Laravel applications
License MIT
Informations about the package laravel-breadcrumbs
Laravel Breadcrumbs
A simple and flexible breadcrumb package for Laravel 12+ applications that provides an easy way to manage and display breadcrumb navigation using FluxUI components.
Features
- Simple and intuitive breadcrumb definition
- Support for nested breadcrumbs with parent relationships
- Automatic breadcrumb generation from current route
- Built-in FluxUI component integration
- Special Dashboard icon support
- Artisan command for generating breadcrumb definitions
- Full Pest test coverage
- Laravel 12+ only support
Requirements
- PHP 8.2+
- Laravel 12+
- FluxUI (Livewire Flux)
Installation
You can install the package via composer:
The package will automatically register its service provider.
Note: This package requires FluxUI to be installed and configured in your Laravel application.
You can publish the config file with:
You can publish the views with:
Usage
Defining Breadcrumbs
Create a routes/breadcrumbs.php file to define your breadcrumbs:
Displaying Breadcrumbs
In your Blade templates, use the breadcrumbs component:
Artisan Command
Generate breadcrumb definitions using the Artisan command:
Manual Usage
You can also generate breadcrumbs manually:
Configuration
The package comes with a configuration file that allows you to customize various aspects:
Customizing Views
You can customize the breadcrumb HTML by publishing the views and modifying them:
The default view will be published to resources/views/vendor/breadcrumbs/breadcrumbs.blade.php.
FluxUI Integration
The package uses FluxUI components for rendering breadcrumbs:
<flux:breadcrumbs>for the main breadcrumb container<flux:breadcrumbs.item>for individual breadcrumb items<flux:icon icon="house">for the special Dashboard icon
The default styling includes:
- Orange accent color for Dashboard items
- Responsive text sizing
- Dark mode support
- Hover states
Advanced Usage
Complex Nested Breadcrumbs
Conditional Breadcrumbs
Home/Dashboard Icon Support
The package includes special handling for the home breadcrumb, which is configurable:
By default, it renders with a house icon:
Customizing Home Display
You can customize how the home breadcrumb appears using the configuration options:
Display Options:
'icon'- Shows only the icon (default)'text'- Shows only the text label'both'- Shows both icon and text label
Testing
The package uses Pest for testing:
Or run Pest directly:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- ACT Training
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-breadcrumbs with dependencies
illuminate/support Version ^12.0
illuminate/view Version ^12.0
illuminate/routing Version ^12.0
livewire/flux Version ^2.0