title: How can i save my data displayed in html table from excel sheet in laravel8
body: <p>I am able to display my details from excel to the html table but i am not sure how can i save it to my db.</p>
  <p>in my controller</p>
  <pre><code>         $cashstaff = new cashstaff;
           $cashstaff-&gt;cBillType =$request-&gt;input('PayBy');
           $cashstaff-&gt;cICNO =$request-&gt;input('ICNo');
           $cashstaff-&gt;cName =$request-&gt;input('Name');
           $cashstaff-&gt;cTestType =$request-&gt;input('TestType');
           $cashstaff-&gt;dInv =$request-&gt;input('TestDate');
           $cashstaff-&gt;cCreateBy = 'SYSTEM';
           $cashstaff-&gt;dCreate = '2022-03-15';
           $cashstaff-&gt;save();
  </code></pre>
  <p>in my html:</p>
  <pre><code>   &lt;section id=&quot;first-tab-group&quot; class=&quot;tabgroup&quot;&gt;
              &lt;div id=&quot;cash&quot;&gt;
    
                &lt;p&gt;&lt;u&gt;Cash Staff Details&lt;/u&gt;&lt;/p&gt;
                &lt;label&gt;Upload Cash Staff Information :&lt;/label&gt;
                &lt;input type=&quot;file&quot; id=&quot;file_upload&quot; name=&quot;file_upload&quot; /&gt;
                &lt;button type=&quot;button&quot; onclick=&quot;upload();&quot;&gt;Upload&lt;/button&gt;
                &lt;br&gt;
                &lt;br&gt;
                &lt;table id='grid'&gt;
                  &lt;tr&gt;
                    &lt;th&gt;Name&lt;/th&gt;
                    &lt;th name=&quot;ICNo&quot;&gt;ICNo&lt;/th&gt;
                    &lt;th name=&quot;TestDate&quot;&gt;TestDate&lt;/th&gt;
                    &lt;th name=&quot;TestType&quot;&gt;TestType&lt;/th&gt;
                    &lt;th &gt;PayBy&lt;/th&gt;
                  &lt;/tr&gt;
                  &lt;tbody id=&quot;display_excel_data&quot;&gt;
                   
                  &lt;/tbody&gt;
                &lt;/table&gt;
  
              &lt;/div&gt;
  </code></pre>
  <p>i have tried using the laravel upload file from excel but it is not working.is there another way to do this?</p>