registerWidgets(); app('saveContentPipeline')->add(SaveContactInformation::class); } /** * Register the service provider. * * @return void */ public function register() { $this->app->register(EventServiceProvider::class); } 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__; } }