title: Laravel: My table has integers as column names and i am unable to update the data using laravel elequent?
body: <blockquote>
    <p>SQLSTATE[42S22]: Column not found: 1054 Unknown column '0' in 'field
    list' (SQL: update <code>dues</code> set <code>0</code> = 10, <code>1</code> = 1300, <code>2</code> = 1300, <code>3</code> =
    11300, <code>4</code> = 1300, <code>5</code> = 1300, <code>6</code> = 1400, <code>7</code> = 1300, <code>8</code> = 1300, <code>9</code>
    = 1400, <code>10</code> = 1300, <code>11</code> = 1300, <code>dues</code>.<code>updated_at</code> = 2020-02-10 08:28:15 where <code>id</code> = 13)</p>
  </blockquote>
  
  <hr>
  
  <pre><code>if ($month[$i] == 1) {
              $dues_update-&gt;update([
                  1 =&gt; $dues_update-&gt;one - $fee[$i],
              ]);
          }elseif($month[$i] == 2) {
              $dues_update-&gt;update([
                  2 =&gt; $dues_update-&gt;two - $fee[$i],
              ]);
          }elseif($month[$i] == 3) {
              $dues_update-&gt;update([
                  3 =&gt; $dues_update-&gt;three - $fee[$i],
              ]);
          }elseif($month[$i] == 4) {
              $dues_update-&gt;update([
                  4 =&gt; $dues_update-&gt;four - $fee[$i],
              ]);
          }elseif($month[$i] == 5) {
              $dues_update-&gt;update([
                  5 =&gt; $dues_update-&gt;five - $fee[$i],
              ]);
          }elseif($month[$i] == 6) {
              $dues_update-&gt;update([
                  6 =&gt; $dues_update-&gt;six - $fee[$i],
              ]);
          }elseif($month[$i] == 7) {
              $dues_update-&gt;update([
                  7 =&gt; $dues_update-&gt;seven - $fee[$i],
              ]);
          }elseif($month[$i] == 8) {
              $dues_update-&gt;update([
                  8 =&gt; $dues_update-&gt;eight - $fee[$i],
              ]);
          }elseif($month[$i] == 9) {
              $dues_update-&gt;update([
                  9 =&gt; $dues_update-&gt;nine - $fee[$i],
              ]);
          }elseif($month[$i] == 10) {
              $dues_update-&gt;update([
                  10 =&gt; $dues_update-&gt;ten - $fee[$i],
              ]);
          }elseif($month[$i] == 11) {
              $dues_update-&gt;update([
                  11 =&gt; $dues_update-&gt;eleven - $fee[$i],
              ]);
          }elseif($month[$i] == 12) {
              $dues_update-&gt;update([
                  12 =&gt; $dues_update-&gt;twelve - $fee[$i],
              ]);
          }
      }`
  
  
  
  
  $table-&gt;bigIncrements('id');
              $table-&gt;string("1")-&gt;default(0);
              $table-&gt;string("2")-&gt;default(0);
              $table-&gt;string("3")-&gt;default(0);
              $table-&gt;string("4")-&gt;default(0);
              $table-&gt;string("5")-&gt;default(0);
              $table-&gt;string("6")-&gt;default(0);
              $table-&gt;string("7")-&gt;default(0);
              $table-&gt;string("8")-&gt;default(0);
              $table-&gt;string("9")-&gt;default(0);
              $table-&gt;string("10")-&gt;default(0);
              $table-&gt;string("11")-&gt;default(0);
              $table-&gt;string("12")-&gt;default(0);
              $table-&gt;string("session")-&gt;nullable();
              $table-&gt;string("student_id")-&gt;nullable();
              $table-&gt;string("concession")-&gt;default(0);
              $table-&gt;string("total")-&gt;default(0);
  </code></pre>