File: /home/xedaptot/work.naniguide.com/app/Listeners/InvoiceUpdatedListener.php
<?php
namespace App\Listeners;
use App\Events\InvoiceUpdatedEvent;
use App\Events\NewInvoiceEvent;
use App\Notifications\InvoiceUpdated;
use Illuminate\Support\Facades\Notification;
class InvoiceUpdatedListener
{
/**
* Handle the event.
*
* @param InvoiceUpdatedEvent $event
* @return void
*/
public function handle(InvoiceUpdatedEvent $event)
{
Notification::send($event->notifyUser, new InvoiceUpdated($event->invoice));
}
}