App\Listeners\LeadActionNotify::handle PHP Method

handle() public method

Handle the event.
public handle ( LeadAction $event ) : void
$event App\Events\LeadAction
return void
    public function handle(LeadAction $event)
    {
        $lead = $event->getLead();
        $action = $event->getAction();
        $lead->assignee->notify(new LeadActionNotification($lead, $action));
    }
LeadActionNotify