/** * Handle the command. * * @param Container $container */ public function handle(Container $container) { $handler = array_get($this->fieldType->getConfig(), 'handler'); if (!class_exists($handler) && !str_contains($handler, '@')) { $handler = array_get($this->fieldType->getHandlers(), $handler); } if (is_string($handler) && !str_contains($handler, '@')) { $handler .= '@handle'; } $container->call($handler, ['fieldType' => $this->fieldType]); }