laravel-breadcrumbs

Advanced Usage

Dependency Injection

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

You can use dependency injection to access the Breadcrumbs instance if you prefer, instead of using the Breadcrumbs:: facade:

use Rawilk\Breadcrumbs\Breadcrumbs;
use Illuminate\Support\ServiceProvider;

class MyServiceProvider extends ServiceProvider
{
    public function boot(Breadcrumbs $breadcrumbs)
    {
        $breadcrumbs->for(...);
    }
}
Previous
Using Multiple Files