This commit is contained in:
Hillel Coren 2016-12-09 14:23:24 +02:00
parent 49223f875b
commit c71e449c64

View File

@ -32,7 +32,11 @@ Run the following command to create a CRUD module:
.. code-block:: php .. code-block:: php
php artisan ninja:make-module <module> 'name:string,description:text' php artisan ninja:make-module <module> <fields>
.. code-block:: php
php artisan ninja:make-module Inventory 'name:string,description:text'
You can make adjustments to the migration file and then run: You can make adjustments to the migration file and then run:
@ -44,7 +48,7 @@ To create and migrate in one step add ``--migrate=true``
.. code-block:: php .. code-block:: php
php artisan ninja:make-module <module> 'name:string,description:text' --migrate=true php artisan ninja:make-module <module> <fields> --migrate=true
.. Tip:: You can specify the module icon by setting a value from http://fontawesome.io/icons/ for "icon" in modules.json. .. Tip:: You can specify the module icon by setting a value from http://fontawesome.io/icons/ for "icon" in modules.json.