/
home
/
sditechnicalteam
/
www
/
app
/
Listeners
/
File Upload :
llllll
Current File: /home/sditechnicalteam/www/app/Listeners/InvoicePaymentReceivedListener.php
<?php namespace App\Listeners; use App\Events\InvoicePaymentReceivedEvent; use App\Notifications\InvoicePaymentReceived; use App\Models\User; use Illuminate\Support\Facades\Notification; class InvoicePaymentReceivedListener { /** * Handle the event. * * @param InvoicePaymentReceivedEvent $event * @return void */ public function handle(InvoicePaymentReceivedEvent $event) { Notification::send(User::allAdmins($event->payment->company->id), new InvoicePaymentReceived($event->payment)); } }
Copyright ©2k19 -
Hexid
|
Tex7ure