Larael Drop zagraniczny klucz
Schema::table('posts', function (Blueprint $table) {
$table->dropForeign(['category_id']);
});
Fahim Foysal
Schema::table('posts', function (Blueprint $table) {
$table->dropForeign(['category_id']);
});
public function down()
{
Schema::table('tarefas', function (Blueprint $table) {
$table->dropForeign('tarefas_user_id_foreign');
$table->dropColumn('user_id');
});
}
$table->dropIndex(['state']); // Drops index 'geo_state_index'
Schema::table('admins', function (Blueprint $table) { $table->dropForeign('admins_post_id_foreign'); $table->dropColumn('post_id');});