title: Fetch data from mysql database
body: <p>How to pass array into where, if this array has dynamic values ?</p>
  
  <pre><code>foreach($value as  $v)
  {
          echo $v-&gt;acc_pkey." ";
          $account = ledger::where('ledger_group', '=', 18)-&gt;orwhere('ledger_group', '=', $v-&gt;acc_pkey)-&gt;get();
  } 
  </code></pre>