title: Accessors and Mutators for where clause laravel
body: <p>I'm crafting a web application with Laravel but i must use a terrible CMS. </p>
  
  <p>The CMS generates some entries in the Database like "info10", "info20", etc ...</p>
  
  <p>So imagine this table "Pancakes" :</p>
  
  <pre><code>id | info1 | info25
  </code></pre>
  
  <p><code>Info1</code> represents the <strong>price</strong> of the pancake and <code>Info25</code> represents the <strong>quantity</strong>. </p>
  
  <p>With accessors and mutators i can use <code>$pancake-&gt;price</code> and <code>$pancake-&gt;quantity</code> to set and get datas, but how i can perform a query like : </p>
  
  <p><code>Pancake::where('price', 25)-&gt;count()</code> than <code>Pancake::where('info1', 25)-&gt;count()</code></p>