parent
d9d6bd7662
commit
3e8aadc962
@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Listeners;
|
||||||
|
|
||||||
|
use Illuminate\Notifications\Events\NotificationSent;
|
||||||
|
|
||||||
|
class LogNotification
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Create the event listener.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle the event.
|
||||||
|
*
|
||||||
|
* @param \App\Events\OrderShipped $event
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function handle(NotificationSent $event)
|
||||||
|
{
|
||||||
|
// Access the order using $event->order...
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue