Answers for "how to drop new column in table using migration in laravel 8"

PHP
6

laravel migration remove column

public function up()
{
  Schema::table('table', function($table) {
    $table->dropColumn('column_name');
  });
}
Posted by: Guest on April-16-2020
0

laravel drop table migration

Schema::drop('users');

Schema::dropIfExists('users');
Posted by: Guest on April-27-2020

Code answers related to "how to drop new column in table using migration in laravel 8"

Browse Popular Code Answers by Language