Advanced Usage

Using Multiple Files

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