marshmallow / breadcrumb
A package for Laravel Breadcrum usage with the ability to add some default and use your custom templating
Installs: 8 975
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 2
Requires
- php: ^7.0|^8.0
- marshmallow/commands: ^1.0
This package is auto-updated.
Last update: 2024-11-13 11:00:37 UTC
README
Laravel Breadcrumb
Laravel breadcrumb is a package that will make it easy to generate breadcrumbs in your Laravel application. If you use our Seoable package as well, then it will generate the structured data json for you as well.
Installatie
composer require marshmallow/breadcrumb
Usage
Add a new crumb
To add a new crumb path you can use the breadcrumb facade.
use Marshmallow\Breadcrumb\Facades\Breadcrumb; Breadcrumb::add('Name', 'Full path (uri)', 'icon class (optional)');
Render your breadcrumbs
{!! Breadcrumb::generate() !!}
Publish
When you publish the breadcrumb package, all blade files will be available for you to change as you like.
php artisan vendor:publish --provider="Marshmallow\Breadcrumb\BreadcrumbServiceProvider"