Download the PHP package havennow/laravel-module without Composer
On this page you can find all versions of the php package havennow/laravel-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download havennow/laravel-module
More information about havennow/laravel-module
Files in havennow/laravel-module
Download havennow/laravel-module
More information about havennow/laravel-module
Files in havennow/laravel-module
Vendor havennow
Package laravel-module
Short Description Laravel light module
License MIT
Homepage https://github.com/havennow/laravel-module
Package laravel-module
Short Description Laravel light module
License MIT
Homepage https://github.com/havennow/laravel-module
Please rate this library. Is it a good library?
Informations about the package laravel-module
Laravel-module
Light package based in package archived: https://github.com/ferrl/framework
The objective is, transform your code in simple modules
Require: PHP >= 7.2.5
Step for setup:
- see in config/modules.ph configs
Configuration
- in array you can enable in general or disable via ENV in file : , is bool
- you can enable specify module
- the index in array need be integer, for order load, in case one module load before another
- for default the folder is
app/Modules, and namespace - can use prefix route
- can enable view or disable
How-use
- Put the ServiceProvider in config/app.php in providers section
- in console
- enable in config in add
- see the code into Modules path
- Test example in
Can custom abstract class for Module for example, you can disable the module in runtime
class Module extends ModuleAbstract
{
public function loadBefore()
{
$this->setEnable(false);
}All versions of laravel-module with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2.5|^8.0
laravel/framework Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/contracts Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
laravel/framework Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/contracts Version ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
The package havennow/laravel-module contains the following files
Loading the files please wait ...