title: Dynamically generate an SQL `WHERE` query, from a `View` in Laravel
body: <p>I am working on a back-up application with <strong>Laravel 5</strong> and I have an issue.</p>
  
  <p>I have to use the entered information from a <em>View</em>, so I can generate a <strong>SELECT *  query</strong>. The problem is that, <strong>WHERE</strong>, should be dynamic.</p>
  
  <p><a href="https://i.stack.imgur.com/tfV3z.png" rel="nofollow noreferrer">https://i.stack.imgur.com/tfV3z.png</a></p>
  
  <p>Like, in the link above, where I show my query, the query I tried using is this:</p>
  
  <p><code>SELECT * FROM table WHERE ch1 &lt; 1 AND ch2 = 2;</code></p>