Skip to main content

Belongs To

Runway provides a dedicated fieldtype to manage belongsTo relationships within Statamic.
You should make sure that the field handle matches the column name in the database.

Templating

In Antlers, you can access any of the fields on the model. They’ll be augmented using the resource’s blueprint.

Options

Has Many

Runway provides a dedicated fieldtype to manage hasMany relationships within Statamic.
You should ensure that the field handle matches the name of the Eloquent relationship in your model (the method name).

Templating

Loop through the models and do anything you want with the data.

Options

Belongs To Many

The Has Many fieldtype is also compatible with belongsToMany relationships. You can use the Has Many fieldtype on both sides of the relationship.
You should ensure that the field handle matches the name of the Eloquent relationship in your model (the method name). For more information on templating with the Has Many fieldtype and the config options available, see the Has Many section.

Polymorphic Relationships

Runway doesn’t currently support Polymorphic relationships out of the box, since they can get pretty complicated. If you need it, please upvote this feature request.