Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
6e15890
Pulls primary key from DB schema if not provided via CLI option
alexanderreiff Feb 24, 2016
73b34b3
Merge pull request #32 from alexanderreiff/feature/fill-pkey-from-tab…
mitulgolakiya Feb 24, 2016
71e1d7c
Exclude existing table timestamp columns from being fillable
alexanderreiff Feb 24, 2016
11ffe9f
Set timestamp properties on generated models
alexanderreiff Feb 24, 2016
f492c1f
Add casting for date fields
alexanderreiff Feb 24, 2016
4d59212
StyleCI fixes
alexanderreiff Feb 24, 2016
5fe9b25
Make fields from table optionally searchable by default
alexanderreiff Feb 24, 2016
ea7971b
Merge pull request #37 from alexanderreiff/feature/existing-timestamps
mitulgolakiya Mar 7, 2016
350a225
merge full request #55
mitulgolakiya Mar 9, 2016
1451159
Applied fixes from StyleCI
mitulgolakiya Mar 9, 2016
2a9e2fc
Merge pull request #58 from InfyOmLabs/analysis-8QMmPP
mitulgolakiya Mar 9, 2016
8f996f5
Fix separating fields with commas
Mar 9, 2016
7a59dc7
Remove GET delete route since it's not needed to directly destroy a r…
Mar 3, 2016
9e05d21
Merge pull request #59 from pjmartorell/commas-fix
mitulgolakiya Mar 10, 2016
6591a3f
fixed #61
mitulgolakiya Mar 12, 2016
111c96a
#38 #49 publish scaffold views
mitulgolakiya Mar 12, 2016
fb9a89a
primary key excluded from table view
mitulgolakiya Mar 12, 2016
35fb80d
#16 checkbox fix, new format of checkbox in sample json
mitulgolakiya Mar 12, 2016
4a61480
#11 PSR2 coding style
mitulgolakiya Mar 15, 2016
dfd4140
minor fix
mitulgolakiya Mar 15, 2016
b688ece
Applied fixes from StyleCI
mitulgolakiya Mar 15, 2016
c23be10
Merge pull request #67 from InfyOmLabs/analysis-XNAloL
mitulgolakiya Mar 15, 2016
99a107d
minor fix
mitulgolakiya Mar 15, 2016
844d825
prefix option with some architectural change
mitulgolakiya Mar 17, 2016
fde7be9
unused variable removed
mitulgolakiya Mar 17, 2016
ecc9053
comments removed
mitulgolakiya Mar 17, 2016
7f922d9
Applied fixes from StyleCI
mitulgolakiya Mar 17, 2016
d74eb22
Merge pull request #74 from InfyOmLabs/analysis-qyvKMj
mitulgolakiya Mar 17, 2016
7ac8009
merge adjusted your checkbox #69
mitulgolakiya Mar 19, 2016
b80f0e5
Revert "merge adjusted your checkbox #69"
mitulgolakiya Mar 19, 2016
77df239
Merge branch 'master' of https://github.com/phillipmadsen/laravel-gen…
mitulgolakiya Mar 19, 2016
4019ed4
Merge branch 'phillipmadsen-master'
mitulgolakiya Mar 19, 2016
d14aeac
minor fix
mitulgolakiya Mar 19, 2016
ae4f656
Merge branch 'remove-delete-route' of https://github.com/pjmartorell/…
mitulgolakiya Mar 19, 2016
5491886
Merge branch 'pjmartorell-remove-delete-route'
mitulgolakiya Mar 19, 2016
b18d36a
Merge branch 'prefix_option'
mitulgolakiya Mar 19, 2016
e027dc8
checkbox group disabled
mitulgolakiya Mar 19, 2016
117b890
fixed #77 paginate added in option
mitulgolakiya Mar 20, 2016
7a95c90
#76 laracast/flash updated to latest version
mitulgolakiya Mar 20, 2016
cfca9b3
fixed #41 everything in single quote
mitulgolakiya Mar 20, 2016
81f783a
#80 --paginate option fix
mitulgolakiya Mar 21, 2016
d0b6bea
#35 inForm and inIndex option added in json file
mitulgolakiya Mar 22, 2016
b9b6179
added deleted_at
phillipmadsen Mar 23, 2016
59f7393
added boolean
phillipmadsen Mar 25, 2016
b8d2cf7
Merge pull request #85 from phillipmadsen/patch-2
mitulgolakiya Mar 26, 2016
ae2a55f
Merge pull request #89 from phillipmadsen/patch-3
mitulgolakiya Mar 26, 2016
5d8f4a0
Merge branch 'prefix_option'
mitulgolakiya Mar 26, 2016
2e3d766
deleted_at added in code generation
mitulgolakiya Mar 26, 2016
a87b21a
minor fix
mitulgolakiya Mar 26, 2016
6068c73
checkbox boolean error
mitulgolakiya Mar 26, 2016
d470334
Applied fixes from StyleCI
mitulgolakiya Mar 26, 2016
4ffa2a8
Merge pull request #90 from InfyOmLabs/analysis-XWNyNN
mitulgolakiya Mar 26, 2016
da3923c
#40 customize table header and cell value fields
mitulgolakiya Mar 26, 2016
8c65fd6
Merge branch '35_include_in_index_form'
mitulgolakiya Mar 26, 2016
e192a4c
Applied fixes from StyleCI
mitulgolakiya Mar 26, 2016
5efc112
Merge pull request #91 from InfyOmLabs/analysis-8ADEDy
mitulgolakiya Mar 26, 2016
5b8327b
minor fix
mitulgolakiya Mar 26, 2016
1fdf182
Merge branch 'master' of https://github.com/InfyOmLabs/laravel-generator
mitulgolakiya Mar 26, 2016
798061e
#50 first commit for basic data table
mitulgolakiya Apr 2, 2016
f62c42a
#50 default datatable option false
mitulgolakiya Apr 2, 2016
13eaa35
#50 file name changed
mitulgolakiya Apr 2, 2016
b6760f4
infy_tab and infy_ln used for tabs and new lines
mitulgolakiya Apr 2, 2016
6339af9
#98 namespace error fixes. Ability to publish AppBaseController
mitulgolakiya Apr 3, 2016
cda41ed
ask to override existing AppBaseController.php
mitulgolakiya Apr 3, 2016
4ddbc29
static variable names fixes
mitulgolakiya Apr 3, 2016
815a053
#50 fixes with new templates
mitulgolakiya Apr 5, 2016
a892d0a
#50 minor fix
mitulgolakiya Apr 6, 2016
8803aa6
#101 #98 swagger base info added and one minor fix
mitulgolakiya Apr 6, 2016
a13e78d
#101 minor fix
mitulgolakiya Apr 6, 2016
cd9489c
todo to remove controller class
mitulgolakiya Apr 6, 2016
1e52b80
Merge branch 'data_tables' into gui-support-changes
mitulgolakiya Apr 9, 2016
eb5495f
remove create button from datatable
mitulgolakiya Apr 9, 2016
55383d6
minor fix
mitulgolakiya Apr 9, 2016
e44f38f
first untested commit for builder support
mitulgolakiya Apr 9, 2016
3904151
minor fix
mitulgolakiya Apr 9, 2016
9906b38
Added option to supress auto-loader generation. default is true (gene…
Apr 12, 2016
2dcc2c9
PSR-2 issue
Apr 12, 2016
f652c86
PSR-2 issue 2
Apr 12, 2016
e3c8d9c
Merge branch 'jschlies-master'
mitulgolakiya Apr 12, 2016
b16d8ae
skipDumpOptimized option to skip dump autoload
mitulgolakiya Apr 12, 2016
f9e750f
menu support added
mitulgolakiya Apr 13, 2016
6178da7
builder fix
mitulgolakiya Apr 13, 2016
5761694
templates choice fix
mitulgolakiya Apr 13, 2016
c044405
#106 table name in migration fix
mitulgolakiya Apr 15, 2016
0a5cb15
menu file path fix
mitulgolakiya Apr 15, 2016
2543e37
#44 rollback command support (half finised)
mitulgolakiya Apr 15, 2016
669fff7
Merge branch 'master' into gui-support-changes
mitulgolakiya Apr 16, 2016
09459f1
minor chagnes in layout publish
mitulgolakiya Apr 19, 2016
e670f19
home controller added
mitulgolakiya Apr 19, 2016
f80c145
fill template added and directory fix
mitulgolakiya Apr 19, 2016
23bb793
home controller routes added
mitulgolakiya Apr 19, 2016
e1f36c7
home stub published
mitulgolakiya Apr 19, 2016
78e3a81
logout fix
mitulgolakiya Apr 19, 2016
677f230
minor fix
mitulgolakiya Apr 19, 2016
e432527
Applied fixes from StyleCI
mitulgolakiya Apr 19, 2016
c118894
Merge pull request #112 from InfyOmLabs/analysis-z4xLx1
mitulgolakiya Apr 19, 2016
23063f6
rollback command delete function placed
mitulgolakiya Apr 20, 2016
f2ed094
Applied fixes from StyleCI
mitulgolakiya Apr 20, 2016
dec04fa
Merge pull request #113 from InfyOmLabs/analysis-XVr4j6
mitulgolakiya Apr 20, 2016
327bec5
minor fix
mitulgolakiya Apr 20, 2016
1597789
minor fix
mitulgolakiya Apr 20, 2016
6b7896d
changelog added
mitulgolakiya Apr 22, 2016
39be968
change in format
mitulgolakiya Apr 22, 2016
f5f47a5
minor fix
mitulgolakiya Apr 22, 2016
e9c9beb
Fix infyom.publish:templates
danhunsaker Apr 25, 2016
d79895c
Merge pull request #119 from danhunsaker/patch-1
mitulgolakiya Apr 25, 2016
791aa93
#120 controller not found fix
mitulgolakiya Apr 27, 2016
b539f37
Applied fixes from StyleCI
mitulgolakiya Apr 27, 2016
ff7dba5
Merge pull request #121 from InfyOmLabs/analysis-qBMpPg
mitulgolakiya Apr 27, 2016
d187116
Fix #126
righter Apr 29, 2016
55d1598
Fixed bad route for datatable
phillipmadsen May 2, 2016
fa62579
Merge pull request #128 from phillipmadsen/patch-5
mitulgolakiya May 7, 2016
936f9c8
Merge branch 'righter-issue-126'
mitulgolakiya May 14, 2016
20a65e6
fix for base path in swagger https://github.com/InfyOmLabs/swagger-ge…
mitulgolakiya May 14, 2016
9f207bc
#137 appbase controller fix
mitulgolakiya May 14, 2016
160bd2d
#144 route prefix fix
mitulgolakiya May 17, 2016
83e19ab
Merge branch 'master' into develop
mitulgolakiya May 17, 2016
b8d23dc
renamed to route prefix
mitulgolakiya May 17, 2016
1eddb49
view prefix support added for sub folder
mitulgolakiya May 17, 2016
2668644
example comment
mitulgolakiya May 17, 2016
f81aea1
#133 skip support for various files added
mitulgolakiya May 17, 2016
d82f13c
ADDED NEW FIELDS
phillipmadsen May 19, 2016
f591764
Added fields
phillipmadsen May 19, 2016
c1c28ca
Merge pull request #154 from phillipmadsen/patch-7
mitulgolakiya May 20, 2016
cc6acdf
Merge pull request #153 from phillipmadsen/patch-6
mitulgolakiya May 20, 2016
9617d13
[~] datatables stub updated to remove hardcoded blade template;
May 21, 2016
811bdc2
#155 first demo version for prefix options and multiple prefix options
mitulgolakiya May 21, 2016
168b245
Merge pull request #164 from alexglue/develop
mitulgolakiya May 28, 2016
3354317
#155 ns not found fix
mitulgolakiya May 29, 2016
6750042
#169 model variables added in fields template
mitulgolakiya May 29, 2016
a7ac4af
remove duplicate code
remxcode Jun 2, 2016
1ad4b0c
Merge pull request #176 from remxcode/develop
mitulgolakiya Jun 2, 2016
a533acc
rename ROUTES_AS_PREFIX to VIEW_PREFIX
remxcode Jun 2, 2016
307af7e
Merge pull request #178 from remxcode/develop
mitulgolakiya Jun 2, 2016
7270cb5
#166 #174 appbase controller fix
mitulgolakiya Jun 2, 2016
9d1aefe
Updated to use the new prefixes
phillipmadsen Jun 3, 2016
b069eb3
Updated to use prefixes
phillipmadsen Jun 3, 2016
fda25f1
added instructions for using the new prefixes
phillipmadsen Jun 3, 2016
7e43e6b
update to seperate directories
phillipmadsen Jun 3, 2016
39dcdc1
Merge pull request #183 from phillipmadsen/patch-13
mitulgolakiya Jun 4, 2016
681fad8
Merge pull request #182 from phillipmadsen/patch-12
mitulgolakiya Jun 4, 2016
ce0992e
Merge pull request #181 from phillipmadsen/patch-11
mitulgolakiya Jun 4, 2016
dc7adc9
Merge pull request #180 from phillipmadsen/patch-10
mitulgolakiya Jun 4, 2016
d730662
return Not Found HTTP CODE 404 to pass ApiTest
remxcode Jun 4, 2016
8cc2a7b
Merge pull request #1 from InfyOmLabs/develop
remxcode Jun 4, 2016
f8d3229
Merge pull request #188 from remxcode/develop
mitulgolakiya Jun 4, 2016
951c71b
#155 prefix fixes
mitulgolakiya Jun 5, 2016
8b42ca8
#179 #174 #166 AppBaseController uses prefix now
mitulgolakiya Jun 5, 2016
89f7b51
Applied fixes from StyleCI
mitulgolakiya Jun 5, 2016
b4a444f
Merge pull request #189 from InfyOmLabs/analysis-q5414B
mitulgolakiya Jun 5, 2016
decedd0
#172 cli option to turn on/off datatables
mitulgolakiya Jun 5, 2016
f562b64
#87 option to specify to generate only specific views
mitulgolakiya Jun 5, 2016
94a66a6
Applied fixes from StyleCI
mitulgolakiya Jun 5, 2016
c50da4e
Merge pull request #190 from InfyOmLabs/analysis-zEPxPO
mitulgolakiya Jun 5, 2016
4fcc100
#155 diff routes when prefix is used
mitulgolakiya Jun 5, 2016
60a9500
Applied fixes from StyleCI
mitulgolakiya Jun 5, 2016
5f29f0a
Merge pull request #191 from InfyOmLabs/analysis-zDyxDB
mitulgolakiya Jun 5, 2016
f7dce82
fixed instruction
phillipmadsen Jun 8, 2016
7484655
#194 fields not generated fix
mitulgolakiya Jun 8, 2016
8f27d4b
Applied fixes from StyleCI
mitulgolakiya Jun 8, 2016
eda041f
Merge pull request #197 from InfyOmLabs/analysis-zEPQDm
mitulgolakiya Jun 8, 2016
bef1e70
Merge pull request #193 from phillipmadsen/patch-15
mitulgolakiya Jun 9, 2016
0031684
=fixed route named prefix in controllers
gdhiraj Jun 13, 2016
91a1882
Merge pull request #201 from john5db/ruote_named_fix_in_controllers
mitulgolakiya Jun 13, 2016
4044c8c
#102 patch route added
mitulgolakiya Jun 18, 2016
df078d2
comments removed from json file
mitulgolakiya Jul 23, 2016
c226893
#232 published templates not used in layout publish
mitulgolakiya Jul 30, 2016
5d7b511
#231 missing quotes in required swagger definition
mitulgolakiya Jul 30, 2016
48c3889
#170 rollback not working with prefix
mitulgolakiya Jul 30, 2016
68e1d85
#170 menu & data tables files deleted
mitulgolakiya Jul 30, 2016
12f13bb
#238 hasOption is not supported in 5.1
mitulgolakiya Jul 31, 2016
a2038b2
quick fix for model name
mitulgolakiya Aug 18, 2016
583f046
docs: readme.md updated
vishalinfyom Dec 18, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
vendor/
node_modules/
.idea/

# Laravel 4 specific
bootstrap/compiled.php
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Release Notes

## 20th Apr 2016

#### New Features
- Introducing [Laravel Generator Builder](http://labs.infyom.com/laravelgenerator/docs/generator-gui-interface) ([#94](https://github.com/InfyOmLabs/laravel-generator/issues/94))
- Introducing Support to Generate CRUD with [AdminLTE Templates](http://labs.infyom.com/laravelgenerator/docs/templates/adminlte)
- Added [Support for DataTable](http://labs.infyom.com/laravelgenerator/docs/options/scaffold-options) in both Bootstrap & AdminLTE Templates ([#50](https://github.com/InfyOmLabs/laravel-generator/issues/50))
- Introducing Support for [Publishing a full Admin Panel layout](http://labs.infyom.com/laravelgenerator/docs/advanced/publish-layout)
- Added [Rollback command](http://labs.infyom.com/laravelgenerator/docs/advanced/commands) to delete generated files ([#44](https://github.com/InfyOmLabs/laravel-generator/issues/44))

#### Enhancements
- Swagger Document Fix via AppBaseController Publish ([#101](https://github.com/InfyOmLabs/laravel-generator/issues/101))

#### Fixes
- Support for custom Namespace ([#98](https://github.com/InfyOmLabs/laravel-generator/issues/98))
49 changes: 45 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,52 @@
<h1 align="center"><img src="https://assets.infyom.com/open-source/infyom-logo.png" alt="InfyOm"></h1>

InfyOm Laravel Generator
==============================
==========================

[![Total Downloads](https://poser.pugx.org/infyomlabs/laravel-generator/downloads)](https://packagist.org/packages/infyomlabs/laravel-generator)
[![Monthly Downloads](https://poser.pugx.org/infyomlabs/laravel-generator/d/monthly)](https://packagist.org/packages/infyomlabs/laravel-generator)
[![Daily Downloads](https://poser.pugx.org/infyomlabs/laravel-generator/d/daily)](https://packagist.org/packages/infyomlabs/laravel-generator)
[![Latest Stable Version](https://poser.pugx.org/infyomlabs/laravel-generator/v/stable)](https://packagist.org/packages/infyomlabs/laravel-generator)
[![Latest Unstable Version](https://poser.pugx.org/infyomlabs/laravel-generator/v/unstable)](https://packagist.org/packages/infyomlabs/laravel-generator)
[![License](https://poser.pugx.org/infyomlabs/laravel-generator/license)](https://packagist.org/packages/infyomlabs/laravel-generator)

Documentation is located [here](http://labs.infyom.com/laravelgenerator)
Generate Admin Panels CRUDs and APIs in Minutes with tons of other features and customizations with 3 different themes.
Read [Documentation](https://www.infyom.com/open-source) for detailed installation steps and usage.

## Support Us

We have created [14+ Laravel packages](https://github.com/InfyOmLabs) and invested a lot of resources into creating these all packages and maintaining them.

You can support us by either sponsoring us or buying one of our paid products. Or help us by spreading the word about us on social platforms via tweets and posts.

### Sponsors

[Become a sponsor](https://opencollective.com/infyomlabs#sponsor) and get your logo on our README on Github with a link to your site.

<a href="https://opencollective.com/infyomlabs#sponsor"><img src="https://opencollective.com/infyomlabs/sponsors.svg?width=890"></a>

### Backers

[Become a backer](https://opencollective.com/infyomlabs#backer) and get your image on our README on Github with a link to your site.

<a href="https://opencollective.com/infyomlabs#backer"><img src="https://opencollective.com/infyomlabs/backers.svg?width=890"></a>

### Buy our Paid Products

[![InfyChat](https://assets.infyom.com/open-source/infychat-banner.png)](https://bit.ly/3gYLWny)

You can also check out our other paid products on [CodeCanyon](https://codecanyon.net/user/infyomlabs/portfolio).

### Follow Us

- [Twitter](https://twitter.com/infyom)
- [Facebook](https://www.facebook.com/infyom)
- [LinkedIn](https://in.linkedin.com/company/infyom-technologies)
- [Youtube](https://www.youtube.com/channel/UC8IvwfChD6i7Wp4yZp3tNsQ)
- [Contact Us](https://infyom.com/contact-us)

## Made with InfyOm Generator

Also, Do not forget to add your website to [Made with InfyOm Generator List](https://github.com/InfyOmLabs/laravel-generator/blob/develop/made-with-generator.md) list.

## Video Tutorials

Checkout [Video Tutorials](https://github.com/shailesh-ladumor/infyom-laravel-generator-tutorial) - **By**: [Shailesh Ladumor](https://github.com/shailesh-ladumor)
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@
"php": ">=5.5.9",
"illuminate/support": "~5.0",
"prettus/l5-repository": "~2.1",
"laracasts/flash": "~1.3"
"laracasts/flash": "~2.0"
},
"autoload": {
"psr-4": {
"InfyOm\\Generator\\": "src/"
}
},
"files": [
"src/helpers.php"
]
}
}
56 changes: 54 additions & 2 deletions config/laravel_generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

'model' => app_path('Models/'),

'datatables' => app_path('DataTables/'),

'repository' => app_path('Repositories/'),

'routes' => app_path('Http/routes.php'),
Expand Down Expand Up @@ -53,6 +55,8 @@

'model' => 'App\Models',

'datatables' => 'App\DataTables',

'repository' => 'App\Repositories',

'controller' => 'App\Http\Controllers',
Expand Down Expand Up @@ -103,6 +107,26 @@
'options' => [

'softDelete' => true,

'tables_searchable_default' => false,
],

/*
|--------------------------------------------------------------------------
| Prefixes
|--------------------------------------------------------------------------
|
*/

'prefixes' => [

'route' => '', // using admin will create route('admin.?.index') type routes

'path' => '',

'view' => '', // using backend will create return view('backend.?.index') type the backend views directory

'public' => '',
],

/*
Expand All @@ -114,8 +138,36 @@

'add_on' => [

'swagger' => true,
'swagger' => true,

'tests' => true,

'tests' => true,
'datatables' => false,

'menu' => [

'enabled' => false,

'menu_file' => 'layouts/menu.blade.php',
],
],

/*
|--------------------------------------------------------------------------
| Timestamp Fields
|--------------------------------------------------------------------------
|
*/

'timestamps' => [

'enabled' => true,

'created_at' => 'created_at',

'updated_at' => 'updated_at',

'deleted_at' => 'deleted_at',
],

];
163 changes: 102 additions & 61 deletions samples/fields_sample.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,104 @@
[
{
"fieldInput": "id:increments",
"htmlType": "",
"validations": "",
"searchable": false,
"fillable": false,
"primary": true
},
{
"fieldInput": "title:string,20",
"htmlType": "text",
"validations": "required",
"searchable": true
},
{
"fieldInput": "email_test:string",
"htmlType": "email",
"searchable": true
},
{
"fieldInput": "date_test:datetime",
"htmlType": "date"
},
{
"fieldInput": "number_test:integer",
"htmlType": "number"
},
{
"fieldInput": "file_test:string",
"htmlType": "file"
},
{
"fieldInput": "password_test:string",
"htmlType": "password"
},
{
"fieldInput": "select_test:string",
"htmlType": "select:Option1,Option2,Option3,Option4,Option5",
"searchable": true
},
{
"fieldInput": "enum_test:enum",
"htmlType": "enum:Mon,Tue,Wed,Thu,Fri,Sat,Sun",
"searchable": true
},
{
"fieldInput": "radio_test:string",
"htmlType": "radio:Male,Female"
},
{
"fieldInput": "checkbox_test:string",
"htmlType": "checkbox:true"
},
{
"fieldInput": "checkbox-group_test:string",
"htmlType": "checkbox-group:Check1,Check2"
},
{
"fieldInput": "body:text",
"htmlType": "textarea"
}
{
"fieldInput": "id:increments",
"htmlType": "",
"validations": "",
"searchable": false,
"fillable": false,
"primary": true,
"inForm": false,
"inIndex": false
},
{
"fieldInput": "title:string,20",
"htmlType": "text",
"validations": "required",
"searchable": true,
"inForm": true,
"inIndex": true
},
{
"fieldInput": "email:string",
"htmlType": "email",
"searchable": true
},
{
"fieldInput": "post_date:dateTime",
"htmlType": "date"
},
{
"fieldInput": "words:integer",
"htmlType": "number"
},
{
"fieldInput": "attachment:string",
"htmlType": "file"
},
{
"fieldInput": "password:string",
"htmlType": "password",
"inIndex": false
},
{
"fieldInput": "post_type:string",
"htmlType": "select:Type1,Type2,Type3,Type4",
"validations": "",
"searchable": true
},
{
"fieldInput": "post_day:enum",
"htmlType": "enum:Mon,Tue,Wed,Thu,Fri,Sat,Sun",
"validations": "",
"searchable": true
},
{
"fieldInput": "post_author_gender:string",
"htmlType": "radio:Male,Female",
"validations": "",
"searchable": false,
"fillable": true,
"primary": false,
"inForm": true,
"inIndex": false
},
{
"fieldInput": "body:text",
"htmlType": "textarea",
"validations": "",
"searchable": false,
"fillable": true,
"primary": false,
"inForm": true,
"inIndex": false
},
{
"fieldInput": "private_post:string",
"htmlType": "checkbox:Yes",
"validations": "",
"searchable": true,
"fillable": true,
"primary": false,
"inForm": true,
"inIndex": false
},
{
"fieldInput": "is_active:boolean",
"htmlType": "bool-checkbox:checked",
"validations": "",
"searchable": true,
"fillable": true,
"primary": false,
"inForm": true,
"inIndex": false
},
{
"fieldInput": "is_published:boolean",
"htmlType": "toggle-switch",
"validations": "",
"searchable": true,
"fillable": true,
"primary": false,
"inForm": true,
"inIndex": false
},
]
2 changes: 0 additions & 2 deletions src/Commands/API/APIControllerGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ public function handle()
{
parent::handle();

$this->initAPIGeneratorCommandData();

$controllerGenerator = new APIControllerGenerator($this->commandData);
$controllerGenerator->generate();

Expand Down
Loading