app->register(ArticleEventServiceProvider::class); // load comments for blogpost $pipeline = app('displayPipeline'); $pipeline->add(LoadCommentsForBlogpost::class); } protected function setModuleAlias() { $this->alias = 'article'; } protected function setModulePath() { $this->path = __DIR__; } }