Changeset View
Changeset View
Standalone View
Standalone View
src/app/Mail/SuspendedDebtor.php
- This file was copied to src/app/Mail/PaymentFailure.php, src/app/Mail/PaymentMandateDisabled.php, src/app/Mail/PaymentSuccess.php.
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | class SuspendedDebtor extends Mailable | ||||
* Render the mail template with fake data | * Render the mail template with fake data | ||||
* | * | ||||
* @return string HTML output | * @return string HTML output | ||||
*/ | */ | ||||
public static function fakeRender(): string | public static function fakeRender(): string | ||||
{ | { | ||||
$user = new User(); | $user = new User(); | ||||
if (!\config('app.support_url')) { | |||||
\config(['app.support_url' => 'https://not-configured-support.url']); | |||||
} | |||||
if (!\config('app.kb.account_delete')) { | |||||
\config(['app.kb.account_delete' => 'https://not-configured-kb.url']); | |||||
} | |||||
if (!\config('app.kb.account_suspended')) { | |||||
\config(['app.kb.account_suspended' => 'https://not-configured-kb.url']); | |||||
} | |||||
$mail = new self($user); | $mail = new self($user); | ||||
return $mail->build()->render(); | return $mail->build()->render(); | ||||
} | } | ||||
} | } |