laravel-breadcrumbs
Advanced Usage
Using Multiple Files
On this page
{note} laravel-breadcrumbs has been archived and is no longer maintained. Use caution when installing in your apps.
{note} You're browsing the documentation for an old version of laravel-breadcrumbs. Consider upgrading your project to v4. Check your version with the following command:
`composer show rawilk/laravel-breadcrumbs`
Introduction
If you don't want to use routes/breadcrumbs.php
, or want to use multiple files, you can change it in the config/breadcrumbs.php
file.
'files' => [base_path('routes/breadcrumbs.php')],
Absolute Paths
You can define an array of absolute paths:
'files' => [
base_path('breadcrumbs/admin.php'),
base_path('breadcrumbs/frontend.php'),
],
Glob
You can also use glob()
to automatically find files using a wildcard.
'files' => [glob(base_path('breadcrumbs/*.php)],
Or return an empty array []
to disable loading.