title: Laravel throw Error from Model if the Condition Fails
body: <p>I am doing all the validations in Model</p>
  
  <p>My Rule is </p>
  
  <pre><code>public static $rules = array(
          'VehicleNumber' =&gt; 'required|unique:vehicle', 
          'NumberSeats' =&gt; 'required', 
          'VehicleType' =&gt; 'required', 
          'MaximumAllowed' =&gt; 'numeric|max:3',
          'VehicleCode' =&gt; 'required|unique:vehicle');
  }
  </code></pre>
  
  <p>But for changing the file name and checking its size i am handling in a <code>SetFooAttribute</code></p>
  
  <pre><code>public function setInsurancePhotoAttribute($InsurancePhoto)
  {
      if($InsurancePhoto &amp;&amp; Input::file('InsurancePhoto')-&gt;getSize() &lt; '1000')
      {
      $this-&gt;attributes['InsurancePhoto'] = Input::get('VehicleCode') . '-InsurancePhoto.' . Input::file('InsurancePhoto')-&gt;getClientOriginalExtension();
      Input::file('InsurancePhoto')-&gt;move('assets/uploads/vehicle/', Input::get('VehicleCode') . '-InsurancePhoto.' . Input::file('InsurancePhoto')-&gt;getClientOriginalExtension());
      }
  }
  </code></pre>
  
  <p>There in the Condition</p>
  
  <pre><code>if($InsurancePhoto &amp;&amp; Input::file('InsurancePhoto')-&gt;getSize() &lt; '1000')
  </code></pre>
  
  <p>If it fails the Storing of Image, Setting Attribute won't be done.</p>
  
  <p><strong>But How can i throw the Error to the User in this  Case ?</strong></p>