Skip to content

Commit

Permalink
Allow notification routing to depend on notification being sent
Browse files Browse the repository at this point in the history
This adds support for the feature added in Laravel 5.6 for routing based on the notification being sent (laravel/framework#22289).
  • Loading branch information
Aaron Huisinga committed Feb 23, 2018
1 parent e9df0ef commit 03b4ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GcmChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __construct(Client $client, Dispatcher $events)
*/
public function send($notifiable, Notification $notification)
{
$tokens = (array) $notifiable->routeNotificationFor('gcm');
$tokens = (array) $notifiable->routeNotificationFor('gcm', $notification);
if (empty($tokens)) {
return;
}
Expand Down

0 comments on commit 03b4ac8

Please sign in to comment.