diff --git a/docs/custom_modules.rst b/docs/custom_modules.rst index bb8d7746cf2e..520e3cd9a212 100644 --- a/docs/custom_modules.rst +++ b/docs/custom_modules.rst @@ -32,9 +32,19 @@ Run the following command to create a module: .. code-block:: php - php artisan module:make + php artisan ninja:make-module Inventory 'name:string,description:text' -.. Note:: To use the standard app layout change the top of Modules//Resources/views/index.blade.php to ``@extends('header')`` +You can make adjustments to the migration file and then run: + +.. code-block:: php + + php artisan module:migrate Inventory + +To create and migrate in one step add ``--migrate=true`` + +.. code-block:: php + + php artisan ninja:make-module Inventory 'name:string,description:text' --migrate=true .. Tip:: You can specify the module icon by setting a value from http://fontawesome.io/icons/ for "icon" in modules.json.