CRUD
This commit is contained in:
parent
49223f875b
commit
c71e449c64
1 changed files with 6 additions and 2 deletions
|
|
@ -32,7 +32,11 @@ Run the following command to create a CRUD module:
|
|||
|
||||
.. 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:
|
||||
|
||||
|
|
@ -44,7 +48,7 @@ To create and migrate in one step add ``--migrate=true``
|
|||
|
||||
.. 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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue