title: Eloquent fatal error: argument passed not the right instance
body: <p>I'm in the process of building an endpoint system in PHP using Slim and Eloquent, as outlined <a href="http://www.slimframework.com/news/slim-and-laravel-eloquent-orm" rel="nofollow">here</a>. When running it in my local dev, the code below fails with what appears to be a Fatal Error based on what the methods are expecting</p>
  
  <pre><code>// Load Eloquent
  $connFactory = new \Illuminate\Database\Connectors\ConnectionFactory();
  $conn = $connFactory-&gt;make($settings);
  $resolver = new \Illuminate\Database\ConnectionResolver();
  $resolver-&gt;addConnection('default', $conn);
  $resolver-&gt;setDefaultConnection('default');
  \Illuminate\Database\Eloquent\Model::setConnectionResolver($resolver);
  </code></pre>
  
  <p>The actual error is:</p>
  
  <pre><code>[Wed Aug 13 10:31:44 2014] PHP Catchable fatal error:  Argument 1 passed to
  Illuminate\Database\Connectors\ConnectionFactory::__construct() must be an instance 
  of Illuminate\Container\Container, none given, called in
  /Users/outsider/application/index.php on line 22 and defined in
  /Users/outsider/application/vendor/illuminate/database/Illuminate/Database/Connectors/ConnectionFactory.php on line 25
  </code></pre>
  
  <p>There's not a whole lot of guidestones in the docs about this. Any ideas on the possible cause?</p>