Handle the event.

@param RouteMatched $event
192224
public function handle(RouteMatched $event)
    {
        if ($event->route->getName() == 'soda.page.match') {
            $event->request->setLaravelSession(
                $this->startSession($event->request)
            );

            $action = app('soda.request-matcher')->match($event->request);

            $event->route->setAction(array_merge(RouteAction::parse($event->route->uri, $action), ['middleware' => 'soda.sluggable-web']));
        }
    }
677241
public function handle(Registered $event)
    {
        if ($event->user instanceof MustVerifyEmail && ! $event->user->hasVerifiedEmail()) {
            $event->user->sendEmailVerificationNotification();
        }
    }
1198959
protected function handle($handler) {
	$handler_type = $this->get_handler_type($handler);
	
	// unmatched requests
	if (empty($handler) || empty($handler_type)) {
		$exception = bootstrap::get_library('exception');
		throw new $exception('no route found', response::STATUS_NOT_FOUND);
	}
	
	// default flow: matched requests
	$this->{'load_handler_as_'.$handler_type}($handler);
}
1032737
public function handleLaravelRoute(RouteMatched $event)
    {
        if ($this->isValidFrontendRoute($event)) {
            ViewComposer::addCallback(function () use ($event) {
                $blockIds = $this->blockFinder->getBlocksIds($event->route->getName(), true);
                $blocks   = $this->blockRepository->getVisibleBlocks($blockIds, $this->languageService->getCurrent(), true);
                $this->handleBlockRendering($blocks);
                $blocks = $blocks->groupBy('region');
                view()->share('blocks', $blocks);
            });
        }
    }
328945
public function handle($event, $args) {
		if (isset($this->callback[$event])) {
			$this->callback[$event](...$args);
		}
	}
263858
public function handle(RegisteredEvent $event)
    {
        $this->track(Settings::TYPEID_REGISTERED, $event->user->id, 10);
    }
675761
public function handleNodeFromRegistry($event)
    {
        if ($event->hasNode()) {
            return;
        }

        $document = $event->getDocument();

        if (!$this->documentRegistry->hasDocument($document)) {
            return;
        }

        $node = $this->documentRegistry->getNodeForDocument($document);
        $event->setNode($node);
    }
958954
public function handle($event)
    {
        $eventName = $this->getEventName($event);

        if ($this->listenerIsRegistered($eventName))
        {
            return call_user_func([$this, 'when'.$eventName], $event);
        }
    }
252663
public function onRoute(MvcEvent $event)
    {
        if ($event->isError()) {
            return $event->getResult();
        }
        $routeMatch = $event->getRouteMatch();
        $routeName  = $routeMatch->getMatchedRouteName();
        $resourceId = "route/$routeName";
        
        return $this->checkAcl($event, $resourceId);
    }
956228
public function handle()
    {
        $this->call('event:clear');

        file_put_contents(
            $this->laravel->getCachedEventsPath(),
            '<?php return '.var_export($this->getEvents(), true).';'
        );

        $this->info('Events cached successfully!');
    }
983732
public function handleHandleHttpRequestEvent(HandleHttpRequestEvent $event) {
        $event->setResponse(
            $this->requestHandler->handle($event->getRequest())
        );
    }
50133
function handle(event) {
    if(event.data.type == 1 || event.data.type == 3 || event.data.type == 7){
        facade.models.login().findCreateFind({
            where:{
                uid: event.user.id,
                type: event.data.type,
            },
            defaults: {
                uid: event.user.id, 
                type: event.data.type, 
                time: event.data.time
            },
        });
    }
}
451714
public function handle(Login $event)
    {
        $user = $event->user;
        if (method_exists($user, 'updateLoginTimestamp')) {
            $user->updateLoginTimestamp();
        }
    }
621279
public function on(string $event, $handler)
    {
        if (self::isSupportedEvent($event)) {
            $this->options[$event] = $handler;
        }
    }
279409
public function handleAddToUrl(AddToUrlEvent $event)
    {
        /** @var Controller $controllerAdapter */
        $controllerAdapter = $this->framework->getAdapter(Controller::class);

        $event->setUrl($controllerAdapter->addToUrl($event->getSuffix()));
    }
419828
protected function fire(string $event, array $args = [])
    {
        if (!$cb = $this->getOption($event)) {
            return null;
        }

        return RouteHelper::call($cb, $args);
    }
1156954
public function fire(string $event, ...$args): void
    {
        if (!isset(self::$events[$event])) {
            return;
        }

        // call event handlers of the event.
        foreach ((array)self::$eventHandlers[$event] as $cb) {
            // return FALSE to stop go on handle.
            if (false === PhpHelper::call($cb, ...$args)) {
                break;
            }
        }

        // is a once event, remove it
        if (self::$events[$event]) {
            $this->off($event);
        }
    }