<?php
 namespace App\Listeners; use TechSoft\Laravel\Member\Events\MemberUserRegisteredEvent; use TechSoft\Laravel\Member\MemberUtil; class MemberListener { public function onMemberUserRegistered(MemberUserRegisteredEvent $event) { MemberUtil::update($event->memberUserId, ['tipEnable' => true,]); } public function subscribe($events) { $events->listen(MemberUserRegisteredEvent::class, '\App\Listeners\MemberListener@onMemberUserRegistered'); } }