{note} You're browsing the documentation for an old version of laravel-breadcrumbs. Consider upgrading your project to v3.

Dependency Injection

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)
← Previous Topic

Using Multiple Files

Next Topic →


Caught a mistake? Suggest an edit on Github