getEncrypted('slack_webhook_url', '')->data; if (is_array($res)) { $res = ''; } return (string) $res; } public function 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); } /** * Get the notification routing information for the given driver. * * @param string $driver * @param null|Notification $notification * * @return mixed */ public function routeNotificationFor($driver, $notification = null) { $method = 'routeNotificationFor' . Str::studly($driver); if (method_exists($this, $method)) { return $this->{$method}($notification); // @phpstan-ignore-line } return match ($driver) { 'mail' => (string) config('firefly.site_owner'), default => null, }; } }