title: Laravel5.3 maatwebsite/excel Read value from excel & insert into database
body: <p>Here is my Excel data sheet type:</p>
  
  <p><a href="https://i.stack.imgur.com/393S0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/393S0.png" alt="enter image description here"></a></p>
  
  <p>Here is My Table Schema:</p>
  
  <p><a href="https://i.stack.imgur.com/Eht6i.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Eht6i.png" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>Here is my method to import data:</p>
  </blockquote>
  
  <pre><code>public function saveActivationInfoExcel(Request $request)
      {
  
          if($request-&gt;hasFile('import_file')){
              $path = $request-&gt;file('import_file')-&gt;getRealPath();
  
              $data = Excel::load($path, function($reader) {})-&gt;get();
  
              if(!empty($data) &amp;&amp; $data-&gt;count()){
  
                  foreach ($data-&gt;toArray() as $key =&gt; $value) {
                      if(!empty($value)){
                          foreach ($value as $v) {        
                              $insert[] = [
                                          'mobile_no' =&gt;$v['mobile_no'], 
                                          'model' =&gt; $v['model'],
                                          'serial_1' =&gt; $v['serial_1'],
                                          'serial_2' =&gt; $v['serial_2'],
                                          'activation_date' =&gt; $v['activation_date'],
                                          ];
                          }
                      }
                  }
  
                  dd($insert);
                  if(!empty($insert)){
                      //ProductActivationInfo::insert($insert);
                      return back()-&gt;with('success','Insert Record successfully.');
                  }
  
              }
  
          }
  
          return back()-&gt;with('error','Please Check your file, Something is wrong there.');
      }
  </code></pre>
  
  <h2>Now my problem is, when I try to import data I got this dd($insert) error</h2>
  
  <pre><code>Illegal string offset 'mobile_no'
  
  'serial_1' =&gt; '3.5194508009307E+14', 
  'serial_2' =&gt; '3.5194508009307E+14', 
  'activation_date' =&gt; object(Carbon), null)
  </code></pre>
  
  <p>have a look both serial_1 &amp; serial_2 showing different value rather then actual excel value. also activation_date value is null.</p>
  
  <p>would appreciate your valuable suggestion to solve this regarding reading data using "maatwebsite/excel" laravel library.</p>