title: Error when Call to a member function connection() on a non-object while using Illuminate Database
body: <p>I have installed Sentry with Composer, thus it has installed Illuminate Database too. The installation was successful, I have done everything in the Sentry documentation. I'm trying to add a user to the database with a simple code. However it gives me this error message:</p>
  
  <pre><code>Fatal error: Call to a member function connection() on a non-object in C:\Program Files\EasyPHP-DevServer-14.1VC9\data\localweb\ilhan\vendor\illuminate\database\Illuminate\Database\Eloquent\Model.php on line 2472
  </code></pre>
  
  <p>My code is as follows:</p>
  
  <pre><code>&lt;?php
  include_once "vendor/autoload.php";
  
  
  use Illuminate\Database\Capsule\Manager as Capsule;
  $capsule = new Capsule;
  
  $capsule-&gt;addConnection([
      'driver'    =&gt; 'mysql',
      'host'      =&gt; 'localhost',
      'database'  =&gt; 'ilhantestdb',
      'username'  =&gt; 'root',
      'password'  =&gt; '',
      'charset'   =&gt; 'utf8',
      'collation' =&gt; 'utf8_unicode_ci',
  ]);
  
  
  
  use Cartalyst\Sentry\Sentry as Sentry;
  
  
  try
  {
      $user = new Sentry;
      // Create the user
      $user-&gt;createUser(array(
          'email'     =&gt; 'john.doe@example.com',
          'password'  =&gt; 'test',
          'activated' =&gt; true,
      ));
  
      // Find the group using the group id
      $adminGroup = Sentry::findGroupById(1);
  
      // Assign the group to the user
      $user-&gt;addGroup($adminGroup);
  }
  catch (Cartalyst\Sentry\Users\LoginRequiredException $e)
  {
      echo 'Login field is required.';
  }
  catch (Cartalyst\Sentry\Users\PasswordRequiredException $e)
  {
      echo 'Password field is required.';
  }
  catch (Cartalyst\Sentry\Users\UserExistsException $e)
  {
      echo 'User with this login already exists.';
  }
  catch (Cartalyst\Sentry\Groups\GroupNotFoundException $e)
  {
      echo 'Group was not found.';
  }
  </code></pre>
  
  <p>Even I don't know how to debug this. Also, I thought that since Illuminate comes with Sentry, Sentry should be coded how to handle Illuminate thus I don't need much configuration. The documentation is poor and I was unable to find what to do with this error.</p>