controller ? $this->controller : $this; if (!class_exists($class)) { throw new SystemException(Lang::get('backend::lang.widget.not_registered', [ 'name' => $class ])); } return new $class($controller, $configuration); } }