commit
26f490bb00
@ -19,7 +19,17 @@ public function __construct(public string $message)
|
|||||||
|
|
||||||
public function via(object $notifiable): array
|
public function via(object $notifiable): array
|
||||||
{
|
{
|
||||||
return [TelegramChannel::class, DiscordChannel::class];
|
$channels = [];
|
||||||
|
$isDiscordEnabled = data_get($notifiable, 'discord_enabled');
|
||||||
|
$isTelegramEnabled = data_get($notifiable, 'telegram_enabled');
|
||||||
|
|
||||||
|
if ($isDiscordEnabled) {
|
||||||
|
$channels[] = DiscordChannel::class;
|
||||||
|
}
|
||||||
|
if ($isTelegramEnabled) {
|
||||||
|
$channels[] = TelegramChannel::class;
|
||||||
|
}
|
||||||
|
return $channels;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function toDiscord(): string
|
public function toDiscord(): string
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template x-if="showRecovery">
|
<template x-if="showRecovery">
|
||||||
<div>
|
<div>
|
||||||
<x-forms.input required type="text" name="recovery_code "
|
<x-forms.input required type="text" name="recovery_code"
|
||||||
label="{{ __('input.recovery_code') }}" />
|
label="{{ __('input.recovery_code') }}" />
|
||||||
<div class="pt-2 text-xs cursor-pointer hover:underline hover:text-white"
|
<div class="pt-2 text-xs cursor-pointer hover:underline hover:text-white"
|
||||||
x-on:click="showRecovery = !showRecovery">Use
|
x-on:click="showRecovery = !showRecovery">Use
|
||||||
|
Loading…
Reference in New Issue
Block a user