You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Notification::route, I intend to push messages according to the specified channel. The actual outcome, however, is that the messages are pushed based on the values returned by the via method.
The desired outcome is to send only email notifications, but the actual result is that both email and SMS notifications are being sent simultaneously. After reading through the source code, I noticed that the channel for sending notifications is obtained through the via method, rather than the AnonymousNotifiable::$routes property. Do I need to manually return different channels in the via method based on the values of $routes?
This discussion was converted from issue #49583 on January 04, 2024 16:37.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel Version
10.10
PHP Version
8.2.0
Database Driver & Version
No response
Description
When using Notification::route, I intend to push messages according to the specified channel. The actual outcome, however, is that the messages are pushed based on the values returned by the via method.
Steps To Reproduce
Message
The desired outcome is to send only email notifications, but the actual result is that both email and SMS notifications are being sent simultaneously. After reading through the source code, I noticed that the channel for sending notifications is obtained through the via method, rather than the AnonymousNotifiable::$routes property. Do I need to manually return different channels in the via method based on the values of $routes?
Beta Was this translation helpful? Give feedback.
All reactions