interface
Illuminate
/
Contracts
/
Database
/
Eloquent
/
SupportsPartialRelations
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
SupportsPartialRelations
Methods
public
ofMany ( $column , $aggregate , $relation ) : $this
Indicate that the relation is a single result of a larger one-to-many relationship.
Parameters
- $column string|null
- $aggregate string|Closure |null
- $relation string
public
isOneOfMany ( ) : bool
Determine whether the relationship is a one-of-many relationship.
public
getOneOfManySubQuery ( ) : Builder |void
Get the one of many inner join subselect query builder instance.