mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
CRUD
This commit is contained in:
parent
137c718199
commit
9e5382d477
@ -32,9 +32,19 @@ Run the following command to create a module:
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
php artisan module:make <module>
|
||||
php artisan ninja:make-module Inventory 'name:string,description:text'
|
||||
|
||||
.. Note:: To use the standard app layout change the top of Modules/<module>/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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user