trait InteractsWithRelationship (View source)

Properties

protected Relation|Closure|null $relationship
protected string|Closure|null $inverseRelationshipName

Methods

relationship(Relation|Closure|null $relationship = null)

No description

inverseRelationshipName(string|Closure|null $relationship = null)

No description

Builder|null
getRelationship()

No description

string|null
getInverseRelationshipName()

No description

Builder
getInverseRelationshipFor(Model $record)

No description

bool
hasRelationship()

No description

Details

InteractsWithRelationship relationship(Relation|Closure|null $relationship = null)

No description

Parameters

Relation|Closure|null $relationship

Return Value

InteractsWithRelationship

InteractsWithRelationship inverseRelationshipName(string|Closure|null $relationship = null)

No description

Parameters

string|Closure|null $relationship

Return Value

InteractsWithRelationship

Builder|null getRelationship()

No description

Return Value

Builder|null

string|null getInverseRelationshipName()

No description

Return Value

string|null

Builder getInverseRelationshipFor(Model $record)

No description

Parameters

Model $record

Return Value

Builder

bool hasRelationship()

No description

Return Value

bool