“Laravel Drop Colonne Softdeletes” Réponses codées

Colonne 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 Colonne Softdeletes

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

Réponses similaires à “Laravel Drop Colonne Softdeletes”

Questions similaires à “Laravel Drop Colonne Softdeletes”

Plus de réponses similaires à “Laravel Drop Colonne Softdeletes” dans PHP

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code