laravel-breadcrumbs

Advanced Usage

Using Multiple Files

{note} laravel-breadcrumbs has been archived and is no longer maintained. Use caution when installing in your apps.

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')],

You can define an array of absolute paths:

'files' => [
    base_path('breadcrumbs/admin.php'),
    base_path('breadcrumbs/frontend.php'),
],

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.

Previous
Resourceful Controllers