/home/techb158/immovalet.com/platform/plugins/contact/src/Providers
NameSizeModeActions
ContactServiceProvider.php23010644editdlrm
HookServiceProvider.php34790644editdlrm
Edit: /home/techb158/immovalet.com/platform/plugins/contact/src/Providers/ContactServiceProvider.php (2301B)
app->bind(ContactInterface::class, function () { return new ContactCacheDecorator(new ContactRepository(new Contact)); }); $this->app->bind(ContactReplyInterface::class, function () { return new ContactReplyCacheDecorator(new ContactReplyRepository(new ContactReply)); }); Helper::autoload(__DIR__ . '/../../helpers'); } public function boot() { $this->setNamespace('plugins/contact') ->loadAndPublishConfigurations(['permissions', 'email']) ->loadRoutes(['web']) ->loadAndPublishViews() ->loadAndPublishTranslations() ->loadMigrations() ->publishAssets(); Event::listen(RouteMatched::class, function () { dashboard_menu()->registerItem([ 'id' => 'cms-plugins-contact', 'priority' => 120, 'parent_id' => null, 'name' => 'plugins/contact::contact.menu', 'icon' => 'far fa-envelope', 'url' => route('contacts.index'), 'permissions' => ['contacts.index'], ]); EmailHandler::addTemplateSettings(CONTACT_MODULE_SCREEN_NAME, config('plugins.contact.email', [])); }); $this->app->booted(function () { $this->app->register(HookServiceProvider::class); }); } }