title: Laravel - Model validation with non database fields
body: <p>I would like to perform my validation in my models. This way, I can have multiple controllers trigger the same validation yet keeping my code very DRY. This works, however I run into an issue when I have a field that I do NOT want stored to the database (ie: password_confirmation).</p>
  
  <p>My code is here: 
  <a href="http://laravel.io/bin/xVEd" rel="nofollow noreferrer">http://laravel.io/bin/xVEd</a></p>
  
  <p>On line 132, I have:</p>
  
  <pre><code>$validation = Validator::make($this-&gt;getAttributes(), static::$rules);
  </code></pre>
  
  <p>I defined the property of password_confirmation in the user model so as to tell eloquent that it is not a DB attribute. Now I just need a way to send it to this validator in the base model that does NOT prevent me from using this base model as a parent to models that do not have this issue.</p>
  
  <p>Possibly also, another root cause of this might be the fact that i have the setAttribute message for password creating a hash. As such the two will never match. </p>