From c71e449c64e1a36fcba2b4982796ac1dea7f711d Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 9 Dec 2016 14:23:24 +0200 Subject: [PATCH] CRUD --- docs/custom_modules.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/custom_modules.rst b/docs/custom_modules.rst index 3f39f5e930f0..13d413164949 100644 --- a/docs/custom_modules.rst +++ b/docs/custom_modules.rst @@ -32,7 +32,11 @@ Run the following command to create a CRUD module: .. code-block:: php - php artisan ninja:make-module 'name:string,description:text' + php artisan ninja:make-module + +.. code-block:: php + + php artisan ninja:make-module Inventory 'name:string,description:text' 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 - php artisan ninja:make-module 'name:string,description:text' --migrate=true + php artisan ninja:make-module --migrate=true .. Tip:: You can specify the module icon by setting a value from http://fontawesome.io/icons/ for "icon" in modules.json.