Browse, edit, add, delete related datatables from parent?
Hi there,
I am wondering if it is somehow possible in wave/voyager to browse (edit, add, delete) a related datatable. I'm builing a simple form builder in which a user can have many forms and a form has many fields. Forms and fields are two different tables. It would be nice to configure the belonging fields within or below the form bread.
I tried to stitch together a screenshot for better understanding:
I hope you understand what I mean.
Hi there,
I beleive that you can define belongsTo
, belongsToMany
, hasOne
, and hasMany
relationships directly in Voyager by following the steps here:
https://voyager-docs.devdojo.com/bread/relationships
Is this what you are after? Or would you rather actually display the field as an input rather that its value?
If it is the latter, then you would need to customize your BREAD files and add your custom logic as described here:
https://voyager-docs.devdojo.com/customization/overriding-files
Let me know how it goes!
















Hi bobbyiliev,
yes, I want to display the belonging fields as input rather than its value. Looks like I have to specify a custom blade for the form bread and possibly adapt the controller. Thanks for the help.
Nevertheless it would be a nice standard feature for voyager. Laravel Filament for example offers it out of the box.
Hey there,
Indeed this sounds like a very good idea! I've certainly had cases where this would have been quite handy.
The best thing that you could do is to open a feature request under the Voyager official GitHub repo:
https://github.com/the-control-group/voyager