Notification::route('sms', $mobileNumber)->notify(new SmsNotification($content));
Optimally you should use routeForNotificationSms in your Notifiable model (eg: User) to obtain the value of the route. But since I am sending the notification to unregistered user, I am trying to access the $mobileNumber variable in my channel without needing to go to the User model. If I try to access the values in the array I am getting and error
Cannot use object of type Illuminate\Notifications\AnonymousNotifiable as array
How do I access the value within the Notification::route parameter from the channel directly?