title: Laravel: How to change UrlGenerator (Core Binding) against custom Implementation?
body: <p>I need to use a custom Implementation of <code>UrlGenerator</code>. So how can I change the default binding of laravel, that is implemented somewhere deep in the core as</p>
  
  <pre><code> 'url'                  =&gt; ['Illuminate\Routing\UrlGenerator', 'Illuminate\Contracts\Routing\UrlGenerator'],
  </code></pre>
  
  <p>against my own implementation? </p>
  
  <p>Furthermore I am not shure. I assume this line above does actually two things. it will store the bindinung under the key "<code>url</code>" and it will also do the mapping of the Interface to the class. So I actually need to override both! How to do that? Furthemore how to find out if this must be bound as "shared"(singleton) or "new instance every time"?</p>
  
  <p>Thanks very much!</p>