Answers for "rename a column and drop in laravel migration"

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

migration rename column laravel

php artisan make:migration rename_author_id_in_posts_table --table=posts
Posted by: Guest on February-09-2021

Code answers related to "rename a column and drop in laravel migration"

Browse Popular Code Answers by Language