Download the PHP package esign/laravel-breadcrumbs without Composer
On this page you can find all versions of the php package esign/laravel-breadcrumbs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download esign/laravel-breadcrumbs
More information about esign/laravel-breadcrumbs
Files in esign/laravel-breadcrumbs
Package laravel-breadcrumbs
Short Description Manage breadcrumbs within your Laravel application
License MIT
Homepage https://github.com/esign/laravel-breadcrumbs
Informations about the package laravel-breadcrumbs
Manage breadcrumbs within your Laravel application
This package allows you to manage and render breadcrumbs within your Laravel application.
Installation
You can install the package via composer:
The package will automatically register a service provider.
Usage
You may start adding breadcrumbs by using the Breadcrumbs
facade.
This is typically done from the controller.
Or add multiple breadcrumbs at once:
You may also prepend breadcrumbs. This may be useful when you always want to add a Home breadcrumb:
Converting to JsonLd
To convert your breadcrumbs to JSON-LD you may use the toJsonLd
method.
This method will return an instance of Spatie\SchemaOrg\BreadcrumbList
.
You may cast this instance to a string to render the actual script tag:
Rendering breadcrumbs
This package ships with a view component to render your breadcrumbs trail:
This will render the following HTML:
Customizing the breadcrumbs view
In case you want to customize the view components you may publish the views:
Testing
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-breadcrumbs with dependencies
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
spatie/schema-org Version ^3.0