Sunday, July 17, 2016

appzcoder crud-generator


1.url
https://packagist.org/packages/appzcoder/crud-generator

2. Crud command: .
php artisan crud:generate Posts --fields="title#string, body#text"
 
3. You can also easily include route, set primary key, set views directory etc 
through options --route, --pk, --view-path as belows: 
php artisan crud:generate Posts --fields="title#string#required, 
body#text#required_with:title|alpha_num" --route=yes --pk=id 
--view-path="admin" --namespace=Admin --route-group=admin 
 
3. These fields are supported for migration and view's form:
  • string
  • char
  • varchar
  • password
  • email
  • date
  • datetime
  • time
  • timestamp
  • text
  • mediumtext
  • longtext
  • json
  • jsonb
  • binary
  • number
  • integer
  • bigint
  • mediumint
  • tinyint
  • smallint
  • boolean
  • decimal
  • double
  • float
  • enum
 

No comments:

Post a Comment