Download the PHP package jminayat/modules-laravel without Composer
On this page you can find all versions of the php package jminayat/modules-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package modules-laravel
JMinayaT Laravel - Modules
jminayat/modules-laravel
is a package for the administration of your laravel application in modules. compatible with Laravel version 5.5 .
- Installation
- Usage
- Artisan Commands
- Facade methods
- Module Methods
Installation
Install the package through the composer.
You need to load the module folder since it does not load automatically. You can autoload your modules using psr-4
.
Edit main composer file, and add:
Do not forget to execute composer dump-autoload
.
You can publish the Migrations.
After the migration has been published, you can create the table of modules by executing the migrations:
You can publish the Config file (it's optional).
When published, the config/modules.php
Config file contains:
Usage
Creating A Module
To create a new module, simply run the following command:
<module-name>
- Replace with the name of the desired module.module description
- Write the description of the module created.
To automatically add controller, model and migration when creating a new module use: -c -d -m
-c
or--controller
- Create controller.-d
or--model
- Create model.-m
or--migration
- Create migration.
Folder Structure
Artisan Commands
Note that the command names use "test" as the name of the example module
module:active
activate | disable module, use true or false.
module:create
create a new module.
options
-c
or--controller
- Create controller.-d
or--model
- Create model.-m
or--migration
- Create migration.
module:delete
delete module.
module:install
Install module from zip file.
module:list
show list of all modules.
module:make-controller
Create a new module controller.
module:make-middleware
Create a new module middleware class.
module:make-request
Create a new module request class.
module:make-model
Create a new module model.
options
-m
or--migration
- Create migration.
module:make-migration
Create a new module migration.
module:make-seeder
Create a new module seeder class.
module:make-factory
Create a new module factory class.
module:make-test
Create a new module test class.
module:make-policy
Create a new module policy class.
module:publish
Publish module zip file.
module:up
Up config file module json.
module:migrate
Migrate database for all modules.
For migrate a specific module to use:
module:rollback
Rollback the last module database migration.
For rollback a specific module to use:
module:seed
Module Seed the database with records.
For seed a specific module to use:
Facade Methods
Get all modules.
Get a specific module.
Get all active modules.
Get all disabled modules.
Check the specified module. If it exists, will return true, otherwise false.
Count all modules.
Install a module using the zip file.
Migrate database the specified module.
Rollback database the specified module.
Migrate the database to all modules
Rollback database to all modules.
Module Methods
get entity from a specific module.
Get module name in studlycase.
Get the status of the module if it is active or disabled.
Enable the specified module.
Enable the specified module.
Delete the specified module.
Get module Path.
Get module Json file.
License
The MIT License (MIT). Please see License File for more information.