“Laravel Drop Column Sofleletes” Respostas de código

coluna Laravel Drop

// 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 Sofleletes

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

Respostas semelhantes a “Laravel Drop Column Sofleletes”

Perguntas semelhantes a “Laravel Drop Column Sofleletes”

Mais respostas relacionadas para “Laravel Drop Column Sofleletes” em PHP

Procure respostas de código populares por idioma

Procurar outros idiomas de código