Relationships
Last updated
Was this helpful?
Last updated
Was this helpful?
This page describes how to implement relationships in your model. For informations on how to use the relationship formfields visit !
Voyager currently supports the following relationship types:
Has one
Has many
Belongs to
Belongs to many
Morphing and Has many through
relationships can be displayed when browsing but are not yet add/editable.
When defining the relationship in your model you have to provide the return type of the method, otherwise Voyager can not know about them: