Advanced Usage

Using Multiple Files

{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

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' => [

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.

Resourceful Controllers
Caught a mistake? Suggest an edit on GitHub