Skip to content

Commit

Permalink
Added option to send mails with uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
daVitekPL committed Nov 19, 2024
1 parent 555e2fa commit 9096230
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ MAIL_FROM_NAME=
DOCKER_PORT=80

SENTRY_LARAVEL_DSN=
USING_UUID=false
2 changes: 1 addition & 1 deletion app/Mail/UnpaidOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
],
);
Expand Down
5 changes: 5 additions & 0 deletions config/orders.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

return [
'using_uuid' => env('USING_UUID', false),
];

0 comments on commit 9096230

Please sign in to comment.