title: Laravel - How to make a multi-filter with array of objects?
body: <p>So, I'm trying to make a method where I can receive an array of objects with the params that I need to do a search in my database.
  Example:</p>
  <pre><code>[{ &quot;field&quot;: &quot;name&quot;, &quot;operator&quot;: &quot;=&quot;, &quot;term&quot;: &quot;john&quot; },
   { &quot;field&quot;: &quot;id&quot;, &quot;operator&quot;: &quot;=&quot;, &quot;term&quot;: &quot;3&quot; }]
  </code></pre>
  <p>I'm receiving it, what I'm trying to do now is:
  A loop where I can make a search on my database on FIELD, where OPERATOR, TERM</p>
  <p>I don't know if I exaplained it well, but I think it would be something like this:</p>
  <pre><code>myForLoop ...
  Table::where(FIELD, OPERATOR, TERM)
  </code></pre>
  <p>Is it correct? How it would be a method like that? I'm kinda noob in laravel.</p>
  <p>Thanks in advance you all!</p>