1Schema::table('posts', function (Blueprint $table) {
2 $table->dropForeign(['category_id']);
3});
1// Searched, laravel drop foreign column
2Schema::table('users', function (Blueprint $table) {
3 $table->dropColumn(['votes', 'avatar', 'location']);
4});
1 public function down()
2 {
3 Schema::table('tarefas', function (Blueprint $table) {
4 $table->dropForeign('tarefas_user_id_foreign');
5
6 $table->dropColumn('user_id');
7 });
8 }
1Schema::table('admins', function (Blueprint $table) { $table->dropForeign('admins_post_id_foreign'); $table->dropColumn('post_id');});