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