title: Laravel validateForm: prevent update when inactive
body: <p>I'm trying to prevent an update in a record when the function <code>isActive</code> returns <code>false</code>.</p>
  
  <p>Foo.php</p>
  
  <pre><code>// My Class
  
  public function isActive() {
      return false;
  }
  </code></pre>
  
  <p>FooForm.php</p>
  
  <pre><code>// My Form
  
  public function validateForm()
  {
      $this-&gt;validate($this-&gt;request, [
          'field_1'      =&gt; 'required',
          'field_2'      =&gt; 'required',
          'field_3'      =&gt; 'required',
          'isActive' =&gt; 'boolean:true'
      ]);
  }
  </code></pre>
  
  <p>Expected: Block the update because <code>isActive</code> returns <code>false</code>.</p>
  
  <p>Nowadays: Updating without any problem.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p><code>isActive</code> can't be database property.</p>