Answers for "laravel table drop column"

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
1

php artisan drop table

php artisan make:migration drop_name_table
Posted by: Guest on February-22-2021

Browse Popular Code Answers by Language