title: In php laravel, can a static method return boolean?
body: <p>I am writing a method in my model to return true or flase. Following is my code.</p>
  
  <pre><code>  public static function isSerialRequired($id)
          {
              $data = static::where('user_id', $id)-&gt;orderBy('id','desc')-&gt;get();
  
              data processing code... 
  
              if (condition for true)
                  return true;
              return false;
  
          }
  </code></pre>
  
  <p>I am getting the below error.</p>
  
  <p><strong>The Response content must be a string or object implementing __toString(), "boolean" given</strong></p>