Closed frankpde closed 4 years ago
I'm going to need more information to determine what's going on here:
$ php artisan artomator:graphql_scaffold MyModel --prefix=MyPrefix --tableName=my_table_name
Specify fields for the model (skip id & timestamp fields, we will add it automatically)
Read docs carefully to specify field inputs)
Enter "exit" to finish
Field: (name db_type html_type options) []:
> user_id bigInteger
Enter validations: []:
> integer
Field: (name db_type html_type options) []:
> recipe_id bigInteger
Enter validations: []:
> integer
Field: (name db_type html_type options) []:
>
Looking at the input you’re providing, you’re not specifying the field type which probably explains why it’s not working.
The requested information is: name, db type, html type, options.
I.e. product_name string,255 text
Documentation here: https://labs.infyom.com/laravelgenerator/docs/7.0/getting-started#field-inputs
The published stub for
fields.blade.php
does not contain any fields. Theshow_fields.blade.php
does however.fields.blade.php
show_fields.blade.php