whoami7 - Manager
:
/
home
/
kckglobal
/
.trash
/
app
/
Listeners
/
Upload File:
files >> /home/kckglobal/.trash/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 ©2021 || Defacer Indonesia