registerWidgets(); } /** * Register the service provider. * * @return void */ public function register() { $registrator = $this->app->make('registerSettingsExtension'); $registrator->register('contactForm', 'contactform::module.name', 'contactform::admin.settings.form'); } private function registerWidgets() { $registrator = $this->app->make('registerWidget'); $registrator->register(Address::class, null, ContactForm::getModuleId()); $registrator->register(Form::class, null, ContactForm::getModuleId()); } protected function setModuleAlias() { $this->alias = 'contactform'; } protected function setModulePath() { $this->path = __DIR__; } }