title: How to change column data type in laravel 5.6?
body: <p>I am trying to change column data type using laravel 5.6.</p>
  
  <p>I have a table in which two columns have a data type of <code>text</code> but I would like to change it to <code>longtext</code>. I have tried following:</p>
  
  <ul>
  <li>executed <code>composer require doctrine/dbal</code></li>
  <li>executed <code>composer dump-autoload</code></li>
  </ul>
  
  <p>...and then created the migration <code>2019_12_23_065820_change_response_column_data_type_in_log_requests_table.php</code> for <code>log_requests</code> table. </p>
  
  <p>...and then the following script </p>
  
  <pre><code>public function up()
  {
      Schema::table('log_requests', function (Blueprint $table) {
          $table-&gt;longText('request')-&gt;nullable()-&gt;change();
          $table-&gt;longText('response')-&gt;nullable()-&gt;change();
      });
  }
  </code></pre>
  
  <p>But it is not changing the column's data type. Can someone guide me? Where am I wrong so that I can fix it? Thank you.</p>
  
  <p><strong>EDITED</strong></p>
  
  <p>After requesting for migration in comment, I added migration script: </p>
  
  <pre><code>public function up()
  {
      Schema::create('log_requests', function (Blueprint $table) {
          $table-&gt;increments('id');
          $table-&gt;bigInteger('user_id')-&gt;nullable()-&gt;unsigned();
          $table-&gt;string('api_name')-&gt;nullable();
          $table-&gt;string('url')-&gt;nullable();
          $table-&gt;string('method')-&gt;nullable();
          $table-&gt;string('ip_address')-&gt;nullable();
          $table-&gt;string('status_code')-&gt;nullable();
          $table-&gt;string('duration')-&gt;nullable();
          $table-&gt;text('request')-&gt;nullable();
          $table-&gt;text('response')-&gt;nullable();
          $table-&gt;timestamps();
      });
  }
  </code></pre>