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 35ff7ec commit 9cb34e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ApnChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function __construct(
*/
public function send($notifiable, Notification $notification)
{
$tokens = (array) $notifiable->routeNotificationFor('apn');
$tokens = (array) $notifiable->routeNotificationFor('apn', $notification);
if (empty($tokens)) {
return;
}
Expand Down

0 comments on commit 9cb34e4

Please sign in to comment.