SupportsPartialRelations
interface SupportsPartialRelations (View source)
Methods
$this
bool
isOneOfMany()
Determine whether the relationship is a one-of-many relationship.
Builder|void
getOneOfManySubQuery()
Get the one of many inner join subselect query builder instance.
Details
$this
ofMany(string|null $column = 'id', string|Closure|null $aggregate = 'MAX', string $relation = null)
Indicate that the relation is a single result of a larger one-to-many relationship.
bool
isOneOfMany()
Determine whether the relationship is a one-of-many relationship.
Builder|void
getOneOfManySubQuery()
Get the one of many inner join subselect query builder instance.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.