Skip to content

simplepleb/modulemanager-module

Repository files navigation

Module Management for Laravel

A Module for managing Laravel modules settings, status etc

This package gives you everything you need to build and manage CRUD modules with ease. Fill in the builder form and the entire module is built for you. Once you click 'Build' you will be redirected to the index page of the new module and immediately be able to add and edit items to the new module.

Latest Stable Version Total Downloads Latest Unstable Version License

Module Settings

Without requiring any database use - we created a simple way to allow the site admin to modify settings for any module.

By default, the settings form will edit and save the Module\{ModuleName}\Config\config.php file. If your module has a more complex settings requirement take note of the settings() method of the ModuleManager.

        /**
         * If the module has its own settings method use it instead
         */
        if (class_exists("\Modules\\".$name."\Http\Controllers\SettingsController")) {

            $func = "\Modules\\".$name."\Http\Controllers\SettingsController::settings";

            return $func();
        }

If the module does not have its own settings method the ModuleManager default will display the form.

If a module config file has values that are arrays() - add them to the protected_modules

Dashboard Screenshot

Screen Shot 2021-03-10 at 6 40 58 AM

Builder Screenshot

Screen Shot 2021-03-11 at 8 17 51 AM

This module manager makes full use of the great Module Package by Nwidart