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