whoami7 - Manager
:
/
home
/
kckglobal
/
public_html
/
portal
/
app
/
Listeners
/
Upload File:
files >> /home/kckglobal/public_html/portal/app/Listeners/EstimateAcceptedListener.php
<?php namespace App\Listeners; use App\Models\User; use App\Events\EstimateAcceptedEvent; use App\Notifications\EstimateAccepted; use Illuminate\Support\Facades\Notification; class EstimateAcceptedListener { /** * Create the event listener. * * @return void */ public function __construct() { // } /** * Handle the event. * * @param EstimateAcceptedEvent $event * @return void */ public function handle(EstimateAcceptedEvent $event) { $company = $event->estimate->company; Notification::send(User::allAdmins($company->id), new EstimateAccepted($event->estimate)); } }
Copyright ©2021 || Defacer Indonesia