mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 00:17:34 -05:00 
			
		
		
		
	CRUD
This commit is contained in:
		
							parent
							
								
									1ea3679ed8
								
							
						
					
					
						commit
						49223f875b
					
				@ -32,19 +32,19 @@ Run the following command to create a CRUD module:
 | 
			
		||||
 | 
			
		||||
.. code-block:: php
 | 
			
		||||
 | 
			
		||||
    php artisan ninja:make-module Inventory 'name:string,description:text'
 | 
			
		||||
    php artisan ninja:make-module <module> 'name:string,description:text'
 | 
			
		||||
 | 
			
		||||
You can make adjustments to the migration file and then run:
 | 
			
		||||
 | 
			
		||||
.. code-block:: php
 | 
			
		||||
 | 
			
		||||
    php artisan module:migrate Inventory
 | 
			
		||||
    php artisan module:migrate <module>
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
    php artisan ninja:make-module <module> '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