title: Can not use '$query' in slim 3 with Laravel eloquent
body: <p>I use slim 3 for microservice for that i install laravel eloquent and i write a laravel query like following</p>
  
  <pre><code>use Illuminate\Database\Capsule\Manager as DB;
  
  DB::enableQueryLog();
  
  $faqs = DB::table('rental_faq')
      -&gt;where('id', '!=', '')
      -&gt;where(function ($query) {
          $query-&gt;where('isActive', '=', 1)
              -&gt;orWhere('isDelete', '=', 'no');
      })
      -&gt;get();
  </code></pre>
  
  <p>then the problem is it shows a error like following</p>
  
  <p>"
  There was an error parsing JSON data
  Unexpected token I in JSON at position 743
  "</p>
  
  <p>I want to perform and_where and or_where operation separated parenthesis</p>