“Laravel Drop Column Softdeletes” Kode Jawaban

kolom drop Laravel

// To drop a column, use the dropColumn method on the schema builder.
// Before dropping columns from a SQLite database, you will need to add
// the doctrine/dbal dependency to your composer.json file and run the
// composer update command in your terminal to install the library:

Schema::table('users', function (Blueprint $table) {
    $table->dropColumn('votes');
});
Yingfufu

Laravel Drop Column Softdeletes

public function down()
{
  Schema::table('users', function (Blueprint $table) {
    $table->dropSoftDeletes();
  });
}
MatrixZA

Jawaban yang mirip dengan “Laravel Drop Column Softdeletes”

Pertanyaan yang mirip dengan “Laravel Drop Column Softdeletes”

Lebih banyak jawaban terkait untuk “Laravel Drop Column Softdeletes” di PHP

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya