diff --git a/app/Filament/Pages/Settings/NotificationPage.php b/app/Filament/Pages/Settings/NotificationPage.php index 2d5baf175..c70d55ee5 100644 --- a/app/Filament/Pages/Settings/NotificationPage.php +++ b/app/Filament/Pages/Settings/NotificationPage.php @@ -100,7 +100,8 @@ protected function getFormSchema(): array ->label('Recipients') ->schema([ TextInput::make('email_address') - ->email(), + ->email() + ->required(), ]) ->hidden(fn (Closure $get) => $get('mail_enabled') !== true) ->columnSpan(['md' => 2]), @@ -151,7 +152,7 @@ public function sendTestMailNotification() { $notificationSettings = new (NotificationSettings::class); - if (count($notificationSettings->mail_recipients)) { + if (! empty($notificationSettings->mail_recipients)) { foreach ($notificationSettings->mail_recipients as $recipient) { Mail::to($recipient) ->send(new Test());