-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add phone to message object #41
Comments
(new AnonymousNotifiable())
->route('smscru', $order->getCustomerPhone())
->notify(new OrderArrived($order)); Чем не устраивает? |
Вариант вполне устраивает, но не в нашем случае. Мы столкнулись с проблемой, когда в момент инициации сообщения нам не известен номер телефона. Например, у нас есть только UUID пользователя, по которому можно вытащить телефон. А в момент обработки, мы можем сходить в базу и получить телефон. Под бэком я имею ввиду два разных laravel приложений. Это кейс, когда 2 разных бэкенда со своими бд. Но только в одной лежит номер телефона. Инициация сообщения происходит из одного бэка, а обработчик запущен на втором. Я понимаю, что такое происходит достаточно редко. В либе для FCM мы сразу решили этот вопрос, так как там было это предусмотрено. |
@kepka42 не вижу в либе https://github.com/laravel-notification-channels/fcm такой возможности. |
@jhaoda https://github.com/benwilkins/laravel-fcm-notification в этой либе есть |
It happens that you need to directly specify the recipient in the message object. (For example, a similar functionality is in the library for working with Firebase Cloud Messaging). This is necessary when we work with AnonymousNotifiable.
The text was updated successfully, but these errors were encountered: