title: Laravel 5.0 - Where to use bindings from Service Providers?
body: <p>In my <code>App\Providers\RouteServiceProvider</code> I did create the method <code>register</code>:</p>
  
  <pre><code>public function register()
  {
      $this-&gt;app-&gt;bindShared('JustTesting', function($app)
      {
          die('got here!');
          // return new MyClass;
      });
  }
  </code></pre>
  
  <p>Where should I use that? I did create a method in <code>App\Http\Controllers\HomeController</code>:</p>
  
  <pre><code>/**
   * ReflectionException in RouteDependencyResolverTrait.php line 53:
   * Class JustTesting does not exist
   *
   * @Get("/test")
   */
  public function test(\JustTesting $test) {
      echo 'Hello';
  }
  </code></pre>
  
  <p>But didn't works, I also can't use $this->app->make('JustTesting');</p>
  
  <p>It works if I do as the code below, but I would like to Inject into controller.</p>
  
  <pre><code>/**
   * "got here!"
   *
   * @Get("/test")
   */
  public function test() {
      \App::make('JustTesting');
  }
  </code></pre>
  
  <p>How should I bind like I want to? And if it's not allowed, why should I use the <code>bindShared</code> method?</p>