title: How to correctly instantiate the Iluminate class outside of laravel
body: <p>I have Eloquent working outside of Laravel with no problems. Now Im trying to use also the Validation class by:</p>
  
  <pre><code>&lt;?php
  
  namespace User;
  
  use Illuminate\Database\Eloquent\Model;
  use Illuminate\Validation\Validator;
  
  class User extends Model {
  
      private $rules = array(
          'firstName' =&gt; 'required|min:2|max:50',
          'lastName'  =&gt; 'required|min:2|max:50',
      );
  
      public function validate($data)
      {
          $v = Validator::make($data, $this-&gt;rules);
          return $v-&gt;passes();
      }
  
  }
  </code></pre>
  
  <p>Executing that code give me an error:</p>
  
  <pre><code> Call to undefined method Illuminate\Validation\Validator::make()
  </code></pre>
  
  <p>That is correct since the method <em>make</em> is not on the class Validator but in his factory:
  <img src="https://i.stack.imgur.com/uy4Bd.png" alt="enter image description here"></p>
  
  <p>How can I correctly instantiate the Validation lib in order to get this working?</p>
  
  <p>BTW, this is my composer.json:</p>
  
  <pre><code>{
      "require": {
          "slim/slim": "^2.6",
          "illuminate/database": "^5.1",
          "illuminate/validation": "^5.1"
      },
      "autoload": {
          "classmap": [
              "app/model"
          ]
      }
  
  }
  </code></pre>