Module Methods
Edit onSimilar to the Module
facade, there are many methods available to use on a module instance.
To find a module, you need to use the facade to find it first:
$module = Module::find('blog');
Get the module’s name:
$module->getName();
Get the module’s name in lowercase:
$module->getLowerName();
Get the module’s name in studly case:
$module->getStudlyName();
Get the module’s path:
$module->getPath();
Get an extra path, such as an asset path:
$module->getExtraPath('assets');
Disable the module:
$module->disable();
Enable the module:
$module->enable();
Delete the module:
$module->delete();
Get an array of the module’s requirements:
$module->getRequires();
- Facade Methods
- Publishing Modules