Skip to content

Commit

Permalink
can send notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Jul 11, 2017
1 parent b5c525c commit 8911143
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Illuminate/Notifications/InstantNotifiable.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace Illuminate\Notifications;

use Illuminate\Contracts\Notifications\Dispatcher;

class InstantNotifiable
{
/**
Expand All @@ -11,6 +13,17 @@ class InstantNotifiable
*/
public $routes;

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

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

0 comments on commit 8911143

Please sign in to comment.