Skip to content

Generators

Generators are an easy and fast way to create a new file from a predefined template. Modular comes with a set of command generators that will help you create common files for your application.

All Modular generators are Command Line Interface (CLI) commands and can be executed from the root of your application, under the namespace modular. For example, to create a new Module, you can run the following command:

bash
php artisan modular:make-module Customer

Available Generators

Here is a list of all the available generators: