Answers for "laravel migration to remove tables"

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 migration table softdeletes

$ php artisan make:migration add_soft_deletes_to_user_table --table="users"}
Posted by: Guest on September-15-2020

Code answers related to "laravel migration to remove tables"

Browse Popular Code Answers by Language