From aaab3bcf3c51a4d8070dda581f9faa47ff2d1922 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Thu, 12 Aug 2021 15:25:34 +0200 Subject: [PATCH] Migrate V1 Api keys by hashing them --- ...152220_hash_api_keys_in_services_table.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 database/migrations/2021_08_12_152220_hash_api_keys_in_services_table.php diff --git a/database/migrations/2021_08_12_152220_hash_api_keys_in_services_table.php b/database/migrations/2021_08_12_152220_hash_api_keys_in_services_table.php new file mode 100644 index 0000000..fc9eb95 --- /dev/null +++ b/database/migrations/2021_08_12_152220_hash_api_keys_in_services_table.php @@ -0,0 +1,30 @@ +bearer_token = Hash::make($service->bearer_token); + $service->saveOrFail(); + } + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + } +}