Skip to content
Denis Duliçi edited this page Nov 19, 2019 · 4 revisions

This package intends to make your Laravel app extensible via modules. A module is a kinda small Laravel app, shipping with its own views, controllers, models, etc.

Creating Modules

Creating a module is pretty simple. Run the following command:

php artisan module:make <alias> like php artisan module:make my-blog

It is also possible to create multiple modules once.

php artisan module:make my-blog projects crm

By default when you create a new module, the command will add some resources like a controller, seed class, service provider, etc. automatically. If you don't want these, you can add --plain flag, to generate a plain module.

php artisan module:make my-blog --plain

Alias

Alias is the unique name of the module used everywhere. Keep in mind that it must be in kebab case like my-module, not my_module or MyModule.

Clone this wiki locally