diff --git a/database/migrations/2025_07_19_141511_clear_password_from_failed_auth_logs.php b/database/migrations/2025_07_19_141511_clear_password_from_failed_auth_logs.php new file mode 100644 index 000000000..8ff24c81c --- /dev/null +++ b/database/migrations/2025_07_19_141511_clear_password_from_failed_auth_logs.php @@ -0,0 +1,29 @@ +get(); + foreach ($logs as $log) { + $log->update(['properties' => collect($log->properties)->except(['password'])->toArray()]); + } + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + // Not needed + } +};