InfyOmLabs / generator-builder

InfyOm Laravel Generator GUI Builder
http://labs.infyom.com/laravelgenerator/
MIT License
133 stars 71 forks source link

dropdown for the foreign key (from other table) from GUI #60

Open sanjaylama opened 3 years ago

sanjaylama commented 3 years ago

I have categories (id, name ) model Category I have posts (id,name,cat_id.) model Post

In GUI, cat_id integer (no validation) select (foreign key checked) categories,id

Add relationship Many to one Category id cat_id (local)

I want to get drop down for categories in post form.

i see in Model some links are created and in mysql table (foreign keys are established) but nothing on views. just plain text or select with out options

doing that not possible?

RayhanYulanda commented 3 years ago

There is no feature for select linked to the model, but you can use from CLI to generate that select linked to the model