title: Laravel5 dependency injection on Model
body: <p>I have an Eloquent Model called Surface which is dependent on a ZipCodeRepository object:</p>
  
  <pre><code>class Surface extends Model{
      public function __construct(ZipCodeRepositoryInterface $zipCode){...}
  </code></pre>
  
  <p>and an Address object that hasMany surfaces.</p>
  
  <pre><code>class Address extends Model{
      public surfaces() { return $this-&gt;hasMany('App/Surface'); }
  }
  </code></pre>
  
  <p>My issue is when I call <code>$address-&gt;surfaces</code> I get the following error:</p>
  
  <pre><code>Argument 1 passed to App\Surface::__construct() must be an instance of App\Repositories\ZipCodeRepositoryInterface, none given
  </code></pre>
  
  <p>I thought the IoC would automatically inject that.</p>