Skip to content

Commit

Permalink
Add notifyNow shortcut to AnonymousNotifiable (#22530)
Browse files Browse the repository at this point in the history
  • Loading branch information
stayallive authored and taylorotwell committed Dec 25, 2017
1 parent a55c4bf commit 2b4ee74
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Illuminate/Notifications/AnonymousNotifiable.php
Expand Up @@ -38,6 +38,17 @@ public function notify($notification)
app(Dispatcher::class)->send($this, $notification);
}

/**
* Send the given notification immediately.
*
* @param mixed $notification
* @return void
*/
public function notifyNow($notification)
{
app(Dispatcher::class)->sendNow($this, $notification);
}

/**
* Get the notification routing information for the given driver.
*
Expand Down

0 comments on commit 2b4ee74

Please sign in to comment.