'StaticPages']); Artisan::call('install-module', ['name' => 'ContactForm']); } catch (\Exception $e) { // ignore message about these modules being installed } } /** * Get list of registered templates and supported modules. * * Returned array is expected to be array of arrays with following items: module, namespace and templateName. * Example: * return [ * ['module' => 'Article', 'templateName' => 'article::template.name'] * ]; * * When no "namespace" is specified, value strtolower(module) is used instaed. * * @return array */ public static function getPublicTemplatePaths() { return [ [ 'module' => 'StaticPages', 'templateName' => 'staticpages::admin.templatePath' ], [ 'module' => 'ContactForm', 'templateName' => 'contactform::admin/adminMenu.templatePath' ] ]; } public static function uninstall(Module $template) { parent::uninstall($template); } }