From 9e5382d47794c006ffa3ac1595a6c7614976e5cd Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 9 Dec 2016 14:10:46 +0200 Subject: [PATCH] CRUD --- docs/custom_modules.rst | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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.