📜  删除外键 laravel eloquent - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:47.179000             🧑  作者: Mango

代码示例1
Schema::table('admins', function (Blueprint $table) {    $table->dropForeign('admins_post_id_foreign');    $table->dropColumn('post_id');});