title: why my timestamps column cannot update or created
body: <p>i have create my table like this :</p>
  <pre><code> /**
       * Run the migrations.
       *
       * @return void
       */
      public function up() {
          Schema::create('coverage_area', function (Blueprint $table) {
              $table-&gt;bigIncrements('id');
              $table-&gt;unsignedBigInteger('village_id');
              $table-&gt;unsignedBigInteger('hub_id');
              $table-&gt;decimal('price', 15, 2);
              $table-&gt;boolean('status')-&gt;comment('1=active,0=inactive')-&gt;default(1);
              $table-&gt;timestamps();
  
              $table-&gt;foreign('village_id')-&gt;references('id')-&gt;on('villages');
              $table-&gt;foreign('hub_id')-&gt;references('id')-&gt;on('hub');
          });
  
          $villages = Village::get()-&gt;toArray();
          foreach ($villages as $key =&gt; $village) {
              $village_insert = [
                  'village_id' =&gt; $village['id'],
                  'hub_id' =&gt; 1,
                  'price' =&gt; $village['price'],
                  'status' =&gt; $village['status'],
                  'created_at' =&gt; date('Y-m-d H:i:s'),
                  'updated_at' =&gt; date('Y-m-d H:i:s'),
              ];
              DB::table('coverage_area')-&gt;insert($village_insert);
          }
  
          Schema::table('villages', function (Blueprint $table) {
              $table-&gt;dropColumn('price');
          });
      }
  </code></pre>
  <p>and this can create column created_at and updated_at...</p>
  <p>but when i use import like create new data or update the data using this code from excel</p>
  <pre><code>  public function collection(Collection $rows)
      {   
          $import_error = session('import_error', []);
          $import_success = session('import_success', []);
          //$villages= Village::select('id','name')-&gt;get()-&gt;toArray();
          $data_insert = [];
          foreach ($rows as $row)
          {   
  
              $price =null;
              if (is_numeric($row['price'])) {
                $price=$row['price'];
              }else{
              $priceConvert = str_replace(&quot;Rp&quot;,&quot;&quot;,$row['price']);
              $priceConvert = str_replace(&quot;.&quot;,&quot;&quot;,$priceConvert);
              $price = (int)$priceConvert;
              }
              //$price = 
              /*if (is_numeric($row['price'])) {
                $price=$row['price'];
                //dd($price);
                continue;
              }*/
             // dd($price);
              $village_id = null;
             // dd($row['kelurahan']);
              $village_name = $row['kelurahan'];
              $district_name = $row['kecamatan'];
              $village_id = DB::table('villages')
                      -&gt;join('districts', 'villages.district_id', '=', 'districts.id')
                      -&gt;where('villages.name', $village_name)
                      -&gt;where('districts.name', $district_name)
                      -&gt;value('villages.id');
              //dd($village_id);
             /* $exist = array_values(array_filter(
                  $villages,
                  function ($e) use ($row) {
                      return $e['name'] == $row['villages'];
                  }
              ));*/
               if (!is_null($village_id)) {
                   $id = null;
                   $hub_id = null;
                  if (!empty(trim($row['id']))) {
                  $id = General::decode($row['id']);
                 }
                  if (!empty(trim($row['hub_id']))) {
                  $hub_id = General::decode($row['hub_id']);
                  }
                   $data_insert[] = [
                  'id' =&gt; $id,
                  'village_id'=&gt;$village_id,
                  'hub_id'=&gt;$hub_id,
                  'price' =&gt; $row['price'],
                  'status' =&gt; $row['status'],
                  ];
                  $import_success['Coverage_area'][] = [
                 'village_id'=&gt;$village_id
                ];
               }else {
                  $import_error['coverage_area'][] = [
                    'kelurahan'=&gt;$row['kelurahan'],
                    'error'=&gt;&quot;Village atau District \&quot;&quot;.$row['kelurahan'].&quot;\&quot; not exist&quot;,
                  ];
              }
             
          }
          session(['import_error' =&gt; $import_error]);
          session(['import_success' =&gt; $import_success]);
          CoverageArea::upsert($data_insert,'id',['price','status']);
      }
  </code></pre>
  <p>yes the data can import and create or update to my database mysql.. but when i see at column created_at and updated_at there is any problem in changing it like this</p>
  <p><img src="https://i.stack.imgur.com/MibcR.png" alt="enter image description here" /></p>
  <p>when i create new data created_at not update the time and when i update the data updated_at not update the time... why like that ?</p>