Repository navigation
Adding a custom module
Adding a custom module has been made easy to do, but requires a few steps.
We have created a command form creation of a basic setup for a "flat" module. And with "flat" we mean: a single table module. To do so:
php artisan hack:moduleThe command will take you through all the steps.
Each module can have all the entry types you can add or make. A lot of the wanted entry types (inputs) are already included, but custom ones are easily made and added. For more information about the inputs and how to add them look here.
After the console run your module has a short name, it is the snake_case of what you entered at creation. The name can be found in the created controller. In the routes/cms-custom.php you will find a group in which you can add your route. An example has been provided and additional information can be found in the HackRouteServiceProvider.
Translations should be added to resources/lang/[language]/modules.php. The database names defined in the $types are the keys for the translation.