title: Get current route inside service provider in Laravel
body: <p>First of all, I have to tell that I am totally new on Laravel, so if you thing I am in the wrong way, please correct me.</p>
  
  <p>Notice, that I have the Laravel 5.1 installed on my application.</p>
  
  <p>I creating an application and I like to have my breadcrumbs inside an array, so I decide to create a Service Provider, and the code for the Service Provider is the following:</p>
  
  <pre><code>&lt;?php
  
  namespace App\Providers;
  
  use Illuminate\Support\Facades\Route;
  use Illuminate\Support\ServiceProvider;
  
  class BreadCrumbsServiceProvider extends ServiceProvider
  {
      //  This will contain all the breadcrumb crumbs
      protected $crumbs = [];
  
  
      /**
       * Bootstrap any application services.
       *
       * @return void
       */
      public function boot()
      {
          $this-&gt;createBreadcrumb();
      }
  
      /**
       * Register the application services.
       *
       * @return void
       */
      public function register()
      {
          $this-&gt;app-&gt;singleton(
              'crumbs',
              function() {
                  return $this-&gt;crumbs;
              }
          );
      }
  
      protected function createBreadcrumb( ) {
  
          dd( Route::current() );
  
      }
  }
  </code></pre>
  
  <p>So ,when I run my site, the <code>dd</code> returns just <code>null</code>. Can someone help me with this situation ?</p>