From 393ade635728846a63a7a48e64abf5654022458c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Drunen?= Date: Thu, 20 Aug 2020 23:19:55 +0200 Subject: [PATCH] Modify migrations that fetched from users table to ignore deleted_at column --- .../2020_07_25_130850_add_plan_column_to_users_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2020_07_25_130850_add_plan_column_to_users_table.php b/database/migrations/2020_07_25_130850_add_plan_column_to_users_table.php index f2e8e4e7..d435b62e 100644 --- a/database/migrations/2020_07_25_130850_add_plan_column_to_users_table.php +++ b/database/migrations/2020_07_25_130850_add_plan_column_to_users_table.php @@ -13,7 +13,7 @@ public function up(): void $table->string('plan')->after('remember_token'); }); - foreach (User::all() as $user) { + foreach (User::withTrashed()->get() as $user) { $user->update(['plan' => 'standard']); } }