/
home
/
sditechnicalteam
/
www
/
app
/
Listeners
/
File Upload :
llllll
Current File: /home/sditechnicalteam/www/app/Listeners/NewNoticeListener.php
<?php namespace App\Listeners; use App\Events\NewNoticeEvent; use App\Notifications\NewNotice; use App\Notifications\NoticeUpdate; use Illuminate\Support\Facades\Notification; class NewNoticeListener { /** * Handle the event. * * @param NewNoticeEvent $event * @return void */ public function handle(NewNoticeEvent $event) { if (isset($event->action) && $event->action == 'update') { Notification::send($event->notifyUser, new NoticeUpdate($event->notice)); } else { Notification::send($event->notifyUser, new NewNotice($event->notice)); } } }
Copyright ©2k19 -
Hexid
|
Tex7ure