/** * Handle the event. * * @param Container $container */ public function handle(Container $container) { if ($this->builder->hasFormErrors()) { return; } $handler = $this->builder->getHandler(); if ($handler && !str_contains($handler, '@')) { $handler .= '@handle'; } $container->call($handler, ['builder' => $this->builder]); }