trait HasRelationship (View source)

Properties

protected Closure|null $modifyRelationshipQueryUsing

Methods

relationship(string $relationshipName, string $titleColumnName = null, Closure $callback = null)

No description

string
getRelationshipKey()

No description

array
getRelationshipOptions()

No description

bool
queriesRelationships()

No description

Builder
getRelationship()

No description

string
getRelationshipName()

No description

string

Details

HasRelationship relationship(string $relationshipName, string $titleColumnName = null, Closure $callback = null)

No description

Parameters

string $relationshipName
string $titleColumnName
Closure $callback

Return Value

HasRelationship

string getRelationshipKey()

No description

Return Value

string

protected array getRelationshipOptions()

No description

Return Value

array

bool queriesRelationships()

No description

Return Value

bool

protected Builder getRelationship()

No description

Return Value

Builder

protected string getRelationshipName()

No description

Return Value

string

protected string getRelationshipTitleColumnName()

No description

Return Value

string