App\Listeners\HandleUserSignedUp::handle PHP Method

handle() public method

Handle the event.
public handle ( UserSignedUp $event ) : void
$event App\Events\UserSignedUp
return void
    public function handle(UserSignedUp $event)
    {
        $user = Auth::user();
        if (Utils::isNinjaProd()) {
            $this->userMailer->sendConfirmation($user);
        } elseif (Utils::isNinjaDev()) {
            // do nothing
        } else {
            $this->accountRepo->registerNinjaUser($user);
        }
        session([SESSION_COUNTER => -1]);
    }
HandleUserSignedUp