belongsTo
, belongsToMany
, hasOne
, and hasMany
relationships directly in Voyager.belongsToMany
relationship you can set, after saving relationship, these parameters in details field:sort
object in the relationship options:my_field
descending.scope
.
The value for scopeActive()
is active
. For scopeSomeUsers()
it is someUsers
.