From 90962308b5d8543354815bce2aa426dcad2f1879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Witold=20Wis=CC=81niewski?= Date: Tue, 19 Nov 2024 15:17:06 +0100 Subject: [PATCH 1/2] Added option to send mails with uuid --- .env.example | 1 + app/Mail/UnpaidOrder.php | 2 +- config/orders.php | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 config/orders.php diff --git a/.env.example b/.env.example index 96db9f2..6ce7500 100755 --- a/.env.example +++ b/.env.example @@ -24,3 +24,4 @@ MAIL_FROM_NAME= DOCKER_PORT=80 SENTRY_LARAVEL_DSN= +USING_UUID=false diff --git a/app/Mail/UnpaidOrder.php b/app/Mail/UnpaidOrder.php index 6681b65..c978ed6 100755 --- a/app/Mail/UnpaidOrder.php +++ b/app/Mail/UnpaidOrder.php @@ -52,7 +52,7 @@ public function content(): Content 'order' => $this->order, 'url' => Str::of($this->api->payment_url) ->finish('/') - ->append($this->order['code']) + ->append(config('orders.using_uuid') ? $this->order['id'] : $this->order['code']) ->toString(), ], ); diff --git a/config/orders.php b/config/orders.php new file mode 100644 index 0000000..905bd33 --- /dev/null +++ b/config/orders.php @@ -0,0 +1,5 @@ + env('USING_UUID', false), +]; From cb0ee57bdfd585e49a499873b7e93f14ee774d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Witold=20Wis=CC=81niewski?= Date: Tue, 19 Nov 2024 15:20:48 +0100 Subject: [PATCH 2/2] fix style --- config/orders.php | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 config/orders.php diff --git a/config/orders.php b/config/orders.php old mode 100644 new mode 100755 index 905bd33..015e1d2 --- a/config/orders.php +++ b/config/orders.php @@ -1,5 +1,7 @@ env('USING_UUID', false), ];