mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 17:04:30 -04:00
CRUD
This commit is contained in:
parent
49223f875b
commit
c71e449c64
@ -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.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user