From 33bfe278f0becb2470b739b4e99be980c3b93dec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karlo=20Miku=C5=A1?= Date: Wed, 11 Dec 2024 17:42:52 +0100 Subject: [PATCH] Add command to anonymize data --- app/Console/Commands/BarAnon.php | 47 ++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 app/Console/Commands/BarAnon.php diff --git a/app/Console/Commands/BarAnon.php b/app/Console/Commands/BarAnon.php new file mode 100644 index 00000000..1b45ce87 --- /dev/null +++ b/app/Console/Commands/BarAnon.php @@ -0,0 +1,47 @@ +email = 'email' . $user->id . '@example.com'; + $user->name = 'User ' . $user->id; + $user->password = Hash::make('Test12345'); + $user->save(); + } + + $this->output->success('Done!'); + + return Command::SUCCESS; + } +}