You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
480 B
30 lines
480 B
5 years ago
|
<?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...
|
||
|
}
|
||
|
}
|