title: How to get an array result set from Laravel where condition
body: <p>I am trying to get a result set from a laravel eloquent query whereby I match a column against a list of values in an array.</p>
  
  <pre><code>$authenticated_operation_ids = AccessControl::where('user_id', '=', $user_id)
      -&gt;where('entity_type_id', '=', $operation_entity_id)
      -&gt;pluck('entity_access_id')-&gt;toArray();
  $authenticated_operations = Operation::whereIn('id', $authenticated_operation_ids);
  
  return view('page.index')-&gt;withOperations($authenticated_operations);
  </code></pre>