{$method}($notification); // @phpstan-ignore-line } Log::debug(sprintf('No method "%s" found, return generic settings.', $method)); return match ($driver) { 'mail' => (string) config('firefly.site_owner'), default => null, }; } public function routeNotificationForPushover() { Log::debug('Return settings for routeNotificationForPushover'); $pushoverAppToken = (string) app('fireflyconfig')->getEncrypted('pushover_app_token', '')->data; $pushoverUserToken = (string) app('fireflyconfig')->getEncrypted('pushover_user_token', '')->data; return PushoverReceiver::withUserKey($pushoverUserToken) ->withApplicationToken($pushoverAppToken) ; } public function routeNotificationForSlack(): string { $res = app('fireflyconfig')->getEncrypted('slack_webhook_url', '')->data; if (is_array($res)) { $res = ''; } return (string) $res; } }