You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide us with details by completing the following requirements. Issues with not enough info are likely to be closed without resolution.
Environment:
Laravel-Code-Generator Version: 2.4.4
Laravel Version: 7.7.1
Description:
I have a field called product_id in my JSON resource file, it is defined as a foreign key , ref to Product.id key. I declared it as "html-type": "text",
but when i generate a create view, it is rendered as a <select> field.
Now, if i set "foreign-relation" to null, the field is rendered correctly.
Is this a bug or am I missing something ?
The thing is i would like to be able to render it as text, but keep the foreign-relation also.
Before you submit an issue please read this
This repository is only for reporting bugs or issues. If you need support, please use Stack Overflow using laravel-code-generator tag (https://stackoverflow.com/questions/tagged/laravel-code-generator)
Please provide us with details by completing the following requirements. Issues with not enough info are likely to be closed without resolution.
Environment:
Description:
I have a field called product_id in my JSON resource file, it is defined as a foreign key , ref to Product.id key. I declared it as
"html-type": "text",
but when i generate a create view, it is rendered as a
<select>
field.Now, if i set "foreign-relation" to null, the field is rendered correctly.
Is this a bug or am I missing something ?
The thing is i would like to be able to render it as text, but keep the foreign-relation also.
Steps/Commands To Reproduce:
php artisan create:create-view Review --force
Content Of The Resource-File:
The text was updated successfully, but these errors were encountered: