title: How to join a array and MySQL table in Laravel
body: <p>i have an array like </p>
  
  <pre><code>array:5 [▼
    188 =&gt; array:17 [▼
      "user_id" =&gt; "176"
      "product_id" =&gt; "188"
      "qty" =&gt; "2"
      "date" =&gt; "03-05-2020"
      "product_type" =&gt; "rear type"
      "custom_color_title" =&gt; ""
      "custom_color_price" =&gt; ""
      "bolt_title" =&gt; ""
      "bolt_price" =&gt; ""
      "hub_center_rings_title" =&gt; ""
      "hub_center_rings_price" =&gt; ""
      "wheel_spacers_title" =&gt; ""
      "wheel_spacers_price" =&gt; ""
      "tire_pressure_title" =&gt; ""
      "tire_pressure_price" =&gt; ""
      "product_price" =&gt; 1890
      "product_size" =&gt; ""
    ]
    176 =&gt; array:17 [▼
      "user_id" =&gt; ""
      "product_id" =&gt; "176"
      "qty" =&gt; "2"
      "date" =&gt; "03-05-2020"
      "product_type" =&gt; "wheel type"
      "custom_color_title" =&gt; ""
      "custom_color_price" =&gt; ""
      "bolt_title" =&gt; ""
      "bolt_price" =&gt; ""
      "hub_center_rings_title" =&gt; ""
      "hub_center_rings_price" =&gt; ""
      "wheel_spacers_title" =&gt; ""
      "wheel_spacers_price" =&gt; ""
      "tire_pressure_title" =&gt; ""
      "tire_pressure_price" =&gt; ""
      "product_price" =&gt; 1680
      "product_size" =&gt; ""
    ]
    224 =&gt; array:17 [▶]
  ] 
  </code></pre>
  
  <p>from a session variable this array 
   and mysql table fields are id,name,img etc.. how to join the array.product_id and table.id  ,</p>
  
  <p>my query like <code>$table=DB::select('SELECT * FROM products');</code>i am doing in laravel any way to join mysql table and array?</p>