<TRelatedModel is Model, TDeclaringModel is Model>
extends |
MorphOneOrMany<TRelatedModel, TDeclaringModel, Collection<int, TRelatedModel>> |
---|
Methods | ||
---|---|---|
public
|
one(): MorphOne<TRelatedModel, TDeclaringModel>
|
# |
public
|
getResults()
|
# |
public
|
initRelation(array $models, $relation)
|
# |
public
|
match(array $models, Collection $results, $relation)
|
# |
public
|
forceCreate(array $attributes = [])
|
# |
Methods used from Illuminate\Support\Traits\ForwardsCalls |
---|
forwardCallTo(), forwardDecoratedCallTo(), throwBadMethodCallException() |
Methods used from Illuminate\Support\Traits\Macroable |
---|
macro(), mixin(), hasMacro(), flushMacros(), __callStatic(), |
Methods used from Illuminate\Database\Eloquent\Relations\Concerns\InteractsWithDictionary |
---|
getDictionaryKey() |
Properties inherited from Illuminate\Database\Eloquent\Relations\MorphOneOrMany |
---|
$morphType, $morphClass |
Properties inherited from Illuminate\Database\Eloquent\Relations\HasOneOrMany |
---|
$foreignKey, $localKey |
Properties inherited from Illuminate\Database\Eloquent\Relations\Relation |
---|
$query, $parent, $related, $eagerKeysWereEmpty, $constraints, $morphMap, $requireMorphMap, $selfJoinCount |
Properties used from Illuminate\Support\Traits\Macroable |
---|
$macros |
Properties used from Illuminate\Database\Eloquent\Relations\Concerns\SupportsInverseRelations |
---|
$inverseRelationship |