Relationships
This page describes how to implement relationships in your model. For informations on how to use the relationship formfields visit this page!
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.
Defining the relationship
When defining the relationship in your model you have to provide the return type of the method, otherwise Voyager can not know about them:
Last updated