HasRelationships
Illuminate\Database\Eloquent\Concerns\HasRelationships
trait src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php
autoloadRelationsUsing
v12.8.0 から
autoloadRelationsUsing(Closure $callback, $context = null)
@param \Closure $callback
@param mixed $context
@return $this
-
v12.8.0
追加
- 変更後
autoloadRelationsUsing(Closure $callback, $context = null) [@param \Closure $callback, @param mixed $context, @return $this]
belongsTo
v11.0.0 以前から
belongsTo($related, $foreignKey = null, $ownerKey = null, $relation = null)
@param class-string<TRelatedModel> $related
@param string|null $foreignKey
@param string|null $ownerKey
@param string|null $relation
@return \Illuminate\Database\Eloquent\Relations\BelongsTo<TRelatedModel, $this>
-
v11.0.0
追加
- 変更後
belongsTo($related, $foreignKey = null, $ownerKey = null, $relation = null) [@param string $related, @param string|null $foreignKey, @param string|null $ownerKey, @param string|null $relation, @return \Illuminate\Database\Eloquent\Relations\BelongsTo]
-
v11.15.0
シグネチャ変更
- 変更前
belongsTo($related, $foreignKey = null, $ownerKey = null, $relation = null) [@param string $related, @param string|null $foreignKey, @param string|null $ownerKey, @param string|null $relation, @return \Illuminate\Database\Eloquent\Relations\BelongsTo]- 変更後
belongsTo($related, $foreignKey = null, $ownerKey = null, $relation = null) [@param class-string<TRelatedModel> $related, @param string|null $foreignKey, @param string|null $ownerKey, @param string|null $relation, @return \Illuminate\Database\Eloquent\Relations\BelongsTo<TRelatedModel, $this>]
belongsToMany
v11.0.0 以前から
belongsToMany($related, $table = null, $foreignPivotKey = null, $relatedPivotKey = null, $parentKey = null, $relatedKey = null, $relation = null)
@param class-string<TRelatedModel> $related
@param class-string<TPivotModel>|TPivotTable $table
@param string|null $foreignPivotKey
@param string|null $relatedPivotKey
@param string|null $parentKey
@param string|null $relatedKey
@param string|null $relation
@return \Illuminate\Database\Eloquent\Relations\BelongsToMany<TRelatedModel, $this, TPivotModel>
-
v11.0.0
追加
- 変更後
belongsToMany($related, $table = null, $foreignPivotKey = null, $relatedPivotKey = null, $parentKey = null, $relatedKey = null, $relation = null) [@param string $related, @param string|class-string<\Illuminate\Database\Eloquent\Model>|null $table, @param string|null $foreignPivotKey, @param string|null $relatedPivotKey, @param string|null $parentKey, @param string|null $relatedKey, @param string|null $relation, @return \Illuminate\Database\Eloquent\Relations\BelongsToMany]
-
v11.15.0
シグネチャ変更
- 変更前
belongsToMany($related, $table = null, $foreignPivotKey = null, $relatedPivotKey = null, $parentKey = null, $relatedKey = null, $relation = null) [@param string $related, @param string|class-string<\Illuminate\Database\Eloquent\Model>|null $table, @param string|null $foreignPivotKey, @param string|null $relatedPivotKey, @param string|null $parentKey, @param string|null $relatedKey, @param string|null $relation, @return \Illuminate\Database\Eloquent\Relations\BelongsToMany]- 変更後
belongsToMany($related, $table = null, $foreignPivotKey = null, $relatedPivotKey = null, $parentKey = null, $relatedKey = null, $relation = null) [@param class-string<TRelatedModel> $related, @param string|class-string<\Illuminate\Database\Eloquent\Model>|null $table, @param string|null $foreignPivotKey, @param string|null $relatedPivotKey, @param string|null $parentKey, @param string|null $relatedKey, @param string|null $relation, @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<TRelatedModel, $this>]
-
v12.3.0
シグネチャ変更
- 変更前
belongsToMany($related, $table = null, $foreignPivotKey = null, $relatedPivotKey = null, $parentKey = null, $relatedKey = null, $relation = null) [@param class-string<TRelatedModel> $related, @param string|class-string<\Illuminate\Database\Eloquent\Model>|null $table, @param string|null $foreignPivotKey, @param string|null $relatedPivotKey, @param string|null $parentKey, @param string|null $relatedKey, @param string|null $relation, @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<TRelatedModel, $this>]- 変更後
belongsToMany($related, $table = null, $foreignPivotKey = null, $relatedPivotKey = null, $parentKey = null, $relatedKey = null, $relation = null) [@param class-string<TRelatedModel> $related, @param string|class-string<\Illuminate\Database\Eloquent\Model>|null $table, @param string|null $foreignPivotKey, @param string|null $relatedPivotKey, @param string|null $parentKey, @param string|null $relatedKey, @param string|null $relation, @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<TRelatedModel, $this, \Illuminate\Database\Eloquent\Relations\Pivot>]
-
v13.8.0
シグネチャ変更
- 変更前
belongsToMany($related, $table = null, $foreignPivotKey = null, $relatedPivotKey = null, $parentKey = null, $relatedKey = null, $relation = null) [@param class-string<TRelatedModel> $related, @param string|class-string<\Illuminate\Database\Eloquent\Model>|null $table, @param string|null $foreignPivotKey, @param string|null $relatedPivotKey, @param string|null $parentKey, @param string|null $relatedKey, @param string|null $relation, @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<TRelatedModel, $this, \Illuminate\Database\Eloquent\Relations\Pivot>]- 変更後
belongsToMany($related, $table = null, $foreignPivotKey = null, $relatedPivotKey = null, $parentKey = null, $relatedKey = null, $relation = null) [@param class-string<TRelatedModel> $related, @param class-string<TPivotModel>|TPivotTable $table, @param string|null $foreignPivotKey, @param string|null $relatedPivotKey, @param string|null $parentKey, @param string|null $relatedKey, @param string|null $relation, @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<TRelatedModel, $this, TPivotModel>]
getActualClassNameForMorph
v11.0.0 以前から
static
static getActualClassNameForMorph($class)
@param string $class
@return string
-
v11.0.0
追加
- 変更後
static getActualClassNameForMorph($class) [@param string $class, @return string]
getMorphClass
v11.0.0 以前から
getMorphClass()
@return string
-
v11.0.0
追加
- 変更後
getMorphClass() [@return string]
getRelation
v11.0.0 以前から
getRelation($relation)
@param string $relation
@return mixed
-
v11.0.0
追加
- 変更後
getRelation($relation) [@param string $relation, @return mixed]
getRelations
v11.0.0 以前から
getRelations()
@return array
-
v11.0.0
追加
- 変更後
getRelations() [@return array]
getTouchedRelations
v11.0.0 以前から
getTouchedRelations()
@return array
-
v11.0.0
追加
- 変更後
getTouchedRelations() [@return array]
hasMany
v11.0.0 以前から
hasMany($related, $foreignKey = null, $localKey = null)
@param class-string<TRelatedModel> $related
@param string|null $foreignKey
@param string|null $localKey
@return \Illuminate\Database\Eloquent\Relations\HasMany<TRelatedModel, $this>
-
v11.0.0
追加
- 変更後
hasMany($related, $foreignKey = null, $localKey = null) [@param string $related, @param string|null $foreignKey, @param string|null $localKey, @return \Illuminate\Database\Eloquent\Relations\HasMany]
-
v11.15.0
シグネチャ変更
- 変更前
hasMany($related, $foreignKey = null, $localKey = null) [@param string $related, @param string|null $foreignKey, @param string|null $localKey, @return \Illuminate\Database\Eloquent\Relations\HasMany]- 変更後
hasMany($related, $foreignKey = null, $localKey = null) [@param class-string<TRelatedModel> $related, @param string|null $foreignKey, @param string|null $localKey, @return \Illuminate\Database\Eloquent\Relations\HasMany<TRelatedModel, $this>]
hasManyThrough
v11.0.0 以前から
hasManyThrough($related, $through, $firstKey = null, $secondKey = null, $localKey = null, $secondLocalKey = null)
@param class-string<TRelatedModel> $related
@param class-string<TIntermediateModel> $through
@param string|null $firstKey
@param string|null $secondKey
@param string|null $localKey
@param string|null $secondLocalKey
@return \Illuminate\Database\Eloquent\Relations\HasManyThrough<TRelatedModel, TIntermediateModel, $this>
-
v11.0.0
追加
- 変更後
hasManyThrough($related, $through, $firstKey = null, $secondKey = null, $localKey = null, $secondLocalKey = null) [@param string $related, @param string $through, @param string|null $firstKey, @param string|null $secondKey, @param string|null $localKey, @param string|null $secondLocalKey, @return \Illuminate\Database\Eloquent\Relations\HasManyThrough]
-
v11.15.0
シグネチャ変更
- 変更前
hasManyThrough($related, $through, $firstKey = null, $secondKey = null, $localKey = null, $secondLocalKey = null) [@param string $related, @param string $through, @param string|null $firstKey, @param string|null $secondKey, @param string|null $localKey, @param string|null $secondLocalKey, @return \Illuminate\Database\Eloquent\Relations\HasManyThrough]- 変更後
hasManyThrough($related, $through, $firstKey = null, $secondKey = null, $localKey = null, $secondLocalKey = null) [@param class-string<TRelatedModel> $related, @param class-string<TIntermediateModel> $through, @param string|null $firstKey, @param string|null $secondKey, @param string|null $localKey, @param string|null $secondLocalKey, @return \Illuminate\Database\Eloquent\Relations\HasManyThrough<TRelatedModel, TIntermediateModel, $this>]
hasOne
v11.0.0 以前から
hasOne($related, $foreignKey = null, $localKey = null)
@param class-string<TRelatedModel> $related
@param string|null $foreignKey
@param string|null $localKey
@return \Illuminate\Database\Eloquent\Relations\HasOne<TRelatedModel, $this>
-
v11.0.0
追加
- 変更後
hasOne($related, $foreignKey = null, $localKey = null) [@param string $related, @param string|null $foreignKey, @param string|null $localKey, @return \Illuminate\Database\Eloquent\Relations\HasOne]
-
v11.15.0
シグネチャ変更
- 変更前
hasOne($related, $foreignKey = null, $localKey = null) [@param string $related, @param string|null $foreignKey, @param string|null $localKey, @return \Illuminate\Database\Eloquent\Relations\HasOne]- 変更後
hasOne($related, $foreignKey = null, $localKey = null) [@param class-string<TRelatedModel> $related, @param string|null $foreignKey, @param string|null $localKey, @return \Illuminate\Database\Eloquent\Relations\HasOne<TRelatedModel, $this>]
hasOneThrough
v11.0.0 以前から
hasOneThrough($related, $through, $firstKey = null, $secondKey = null, $localKey = null, $secondLocalKey = null)
@param class-string<TRelatedModel> $related
@param class-string<TIntermediateModel> $through
@param string|null $firstKey
@param string|null $secondKey
@param string|null $localKey
@param string|null $secondLocalKey
@return \Illuminate\Database\Eloquent\Relations\HasOneThrough<TRelatedModel, TIntermediateModel, $this>
-
v11.0.0
追加
- 変更後
hasOneThrough($related, $through, $firstKey = null, $secondKey = null, $localKey = null, $secondLocalKey = null) [@param string $related, @param string $through, @param string|null $firstKey, @param string|null $secondKey, @param string|null $localKey, @param string|null $secondLocalKey, @return \Illuminate\Database\Eloquent\Relations\HasOneThrough]
-
v11.15.0
シグネチャ変更
- 変更前
hasOneThrough($related, $through, $firstKey = null, $secondKey = null, $localKey = null, $secondLocalKey = null) [@param string $related, @param string $through, @param string|null $firstKey, @param string|null $secondKey, @param string|null $localKey, @param string|null $secondLocalKey, @return \Illuminate\Database\Eloquent\Relations\HasOneThrough]- 変更後
hasOneThrough($related, $through, $firstKey = null, $secondKey = null, $localKey = null, $secondLocalKey = null) [@param class-string<TRelatedModel> $related, @param class-string<TIntermediateModel> $through, @param string|null $firstKey, @param string|null $secondKey, @param string|null $localKey, @param string|null $secondLocalKey, @return \Illuminate\Database\Eloquent\Relations\HasOneThrough<TRelatedModel, TIntermediateModel, $this>]
hasRelationAutoloadCallback
v12.8.0 から
hasRelationAutoloadCallback()
@return bool
-
v12.8.0
追加
- 変更後
hasRelationAutoloadCallback() [@return bool]
initializeHasRelationships
v13.0.0 から
initializeHasRelationships()
@return void
-
v13.0.0
追加
- 変更後
initializeHasRelationships() [@return void]
joiningTable
v11.0.0 以前から
joiningTable($related, $instance = null)
@param string $related
@param \Illuminate\Database\Eloquent\Model|null $instance
@return string
-
v11.0.0
追加
- 変更後
joiningTable($related, $instance = null) [@param string $related, @param \Illuminate\Database\Eloquent\Model|null $instance, @return string]
joiningTableSegment
v11.0.0 以前から
joiningTableSegment()
@return string
-
v11.0.0
追加
- 変更後
joiningTableSegment() [@return string]
morphedByMany
v11.0.0 以前から
morphedByMany($related, $name, $table = null, $foreignPivotKey = null, $relatedPivotKey = null, $parentKey = null, $relatedKey = null, $relation = null)
@param class-string<TRelatedModel> $related
@param string $name
@param string|null $table
@param string|null $foreignPivotKey
@param string|null $relatedPivotKey
@param string|null $parentKey
@param string|null $relatedKey
@param string|null $relation
@return \Illuminate\Database\Eloquent\Relations\MorphToMany<TRelatedModel, $this>
-
v11.0.0
追加
- 変更後
morphedByMany($related, $name, $table = null, $foreignPivotKey = null, $relatedPivotKey = null, $parentKey = null, $relatedKey = null, $relation = null) [@param string $related, @param string $name, @param string|null $table, @param string|null $foreignPivotKey, @param string|null $relatedPivotKey, @param string|null $parentKey, @param string|null $relatedKey, @param string|null $relation, @return \Illuminate\Database\Eloquent\Relations\MorphToMany]
-
v11.15.0
シグネチャ変更
- 変更前
morphedByMany($related, $name, $table = null, $foreignPivotKey = null, $relatedPivotKey = null, $parentKey = null, $relatedKey = null, $relation = null) [@param string $related, @param string $name, @param string|null $table, @param string|null $foreignPivotKey, @param string|null $relatedPivotKey, @param string|null $parentKey, @param string|null $relatedKey, @param string|null $relation, @return \Illuminate\Database\Eloquent\Relations\MorphToMany]- 変更後
morphedByMany($related, $name, $table = null, $foreignPivotKey = null, $relatedPivotKey = null, $parentKey = null, $relatedKey = null, $relation = null) [@param class-string<TRelatedModel> $related, @param string $name, @param string|null $table, @param string|null $foreignPivotKey, @param string|null $relatedPivotKey, @param string|null $parentKey, @param string|null $relatedKey, @param string|null $relation, @return \Illuminate\Database\Eloquent\Relations\MorphToMany<TRelatedModel, $this>]
morphMany
v11.0.0 以前から
morphMany($related, $name, $type = null, $id = null, $localKey = null)
@param class-string<TRelatedModel> $related
@param string $name
@param string|null $type
@param string|null $id
@param string|null $localKey
@return \Illuminate\Database\Eloquent\Relations\MorphMany<TRelatedModel, $this>
-
v11.0.0
追加
- 変更後
morphMany($related, $name, $type = null, $id = null, $localKey = null) [@param string $related, @param string $name, @param string|null $type, @param string|null $id, @param string|null $localKey, @return \Illuminate\Database\Eloquent\Relations\MorphMany]
-
v11.15.0
シグネチャ変更
- 変更前
morphMany($related, $name, $type = null, $id = null, $localKey = null) [@param string $related, @param string $name, @param string|null $type, @param string|null $id, @param string|null $localKey, @return \Illuminate\Database\Eloquent\Relations\MorphMany]- 変更後
morphMany($related, $name, $type = null, $id = null, $localKey = null) [@param class-string<TRelatedModel> $related, @param string $name, @param string|null $type, @param string|null $id, @param string|null $localKey, @return \Illuminate\Database\Eloquent\Relations\MorphMany<TRelatedModel, $this>]
morphOne
v11.0.0 以前から
morphOne($related, $name, $type = null, $id = null, $localKey = null)
@param class-string<TRelatedModel> $related
@param string $name
@param string|null $type
@param string|null $id
@param string|null $localKey
@return \Illuminate\Database\Eloquent\Relations\MorphOne<TRelatedModel, $this>
-
v11.0.0
追加
- 変更後
morphOne($related, $name, $type = null, $id = null, $localKey = null) [@param string $related, @param string $name, @param string|null $type, @param string|null $id, @param string|null $localKey, @return \Illuminate\Database\Eloquent\Relations\MorphOne]
-
v11.15.0
シグネチャ変更
- 変更前
morphOne($related, $name, $type = null, $id = null, $localKey = null) [@param string $related, @param string $name, @param string|null $type, @param string|null $id, @param string|null $localKey, @return \Illuminate\Database\Eloquent\Relations\MorphOne]- 変更後
morphOne($related, $name, $type = null, $id = null, $localKey = null) [@param class-string<TRelatedModel> $related, @param string $name, @param string|null $type, @param string|null $id, @param string|null $localKey, @return \Illuminate\Database\Eloquent\Relations\MorphOne<TRelatedModel, $this>]
morphTo
v11.0.0 以前から
morphTo($name = null, $type = null, $id = null, $ownerKey = null)
@param string|null $name
@param string|null $type
@param string|null $id
@param string|null $ownerKey
@return \Illuminate\Database\Eloquent\Relations\MorphTo<\Illuminate\Database\Eloquent\Model, $this>
-
v11.0.0
追加
- 変更後
morphTo($name = null, $type = null, $id = null, $ownerKey = null) [@param string|null $name, @param string|null $type, @param string|null $id, @param string|null $ownerKey, @return \Illuminate\Database\Eloquent\Relations\MorphTo]
-
v11.15.0
シグネチャ変更
- 変更前
morphTo($name = null, $type = null, $id = null, $ownerKey = null) [@param string|null $name, @param string|null $type, @param string|null $id, @param string|null $ownerKey, @return \Illuminate\Database\Eloquent\Relations\MorphTo]- 変更後
morphTo($name = null, $type = null, $id = null, $ownerKey = null) [@param string|null $name, @param string|null $type, @param string|null $id, @param string|null $ownerKey, @return \Illuminate\Database\Eloquent\Relations\MorphTo<\Illuminate\Database\Eloquent\Model, $this>]
morphToMany
v11.0.0 以前から
morphToMany($related, $name, $table = null, $foreignPivotKey = null, $relatedPivotKey = null, $parentKey = null, $relatedKey = null, $relation = null, $inverse = false)
@param class-string<TRelatedModel> $related
@param string $name
@param string|null $table
@param string|null $foreignPivotKey
@param string|null $relatedPivotKey
@param string|null $parentKey
@param string|null $relatedKey
@param string|null $relation
@param bool $inverse
@return \Illuminate\Database\Eloquent\Relations\MorphToMany<TRelatedModel, $this>
-
v11.0.0
追加
- 変更後
morphToMany($related, $name, $table = null, $foreignPivotKey = null, $relatedPivotKey = null, $parentKey = null, $relatedKey = null, $relation = null, $inverse = false) [@param string $related, @param string $name, @param string|null $table, @param string|null $foreignPivotKey, @param string|null $relatedPivotKey, @param string|null $parentKey, @param string|null $relatedKey, @param string|null $relation, @param bool $inverse, @return \Illuminate\Database\Eloquent\Relations\MorphToMany]
-
v11.15.0
シグネチャ変更
- 変更前
morphToMany($related, $name, $table = null, $foreignPivotKey = null, $relatedPivotKey = null, $parentKey = null, $relatedKey = null, $relation = null, $inverse = false) [@param string $related, @param string $name, @param string|null $table, @param string|null $foreignPivotKey, @param string|null $relatedPivotKey, @param string|null $parentKey, @param string|null $relatedKey, @param string|null $relation, @param bool $inverse, @return \Illuminate\Database\Eloquent\Relations\MorphToMany]- 変更後
morphToMany($related, $name, $table = null, $foreignPivotKey = null, $relatedPivotKey = null, $parentKey = null, $relatedKey = null, $relation = null, $inverse = false) [@param class-string<TRelatedModel> $related, @param string $name, @param string|null $table, @param string|null $foreignPivotKey, @param string|null $relatedPivotKey, @param string|null $parentKey, @param string|null $relatedKey, @param string|null $relation, @param bool $inverse, @return \Illuminate\Database\Eloquent\Relations\MorphToMany<TRelatedModel, $this>]
relationLoaded
v11.0.0 以前から
relationLoaded($key)
@param string $key
@return bool
-
v11.0.0
追加
- 変更後
relationLoaded($key) [@param string $key, @return bool]
relationResolver
v11.0.0 以前から
relationResolver($class, $key)
@param class-string<TRelatedModel> $class
@param string $key
@return Closure|null
-
v11.0.0
追加
- 変更後
relationResolver($class, $key) [@param string $class, @param string $key, @return mixed]
-
v11.38.0
シグネチャ変更
- 変更前
relationResolver($class, $key) [@param string $class, @param string $key, @return mixed]- 変更後
relationResolver($class, $key) [@param class-string<TRelatedModel> $class, @param string $key, @return Closure|null]
resolveRelationUsing
v11.0.0 以前から
static
static resolveRelationUsing($name, Closure $callback)
@param string $name
@param \Closure $callback
@return void
-
v11.0.0
追加
- 変更後
static resolveRelationUsing($name, Closure $callback) [@param string $name, @param \Closure $callback, @return void]
setRelation
v11.0.0 以前から
setRelation($relation, $value)
@param string $relation
@param mixed $value
@return $this
-
v11.0.0
追加
- 変更後
setRelation($relation, $value) [@param string $relation, @param mixed $value, @return $this]
setRelations
v11.0.0 以前から
setRelations(array $relations)
@param array $relations
@return $this
-
v11.0.0
追加
- 変更後
setRelations(array $relations) [@param array $relations, @return $this]
setTouchedRelations
v11.0.0 以前から
setTouchedRelations(array $touches)
@param array $touches
@return $this
-
v11.0.0
追加
- 変更後
setTouchedRelations(array $touches) [@param array $touches, @return $this]
through
v11.0.0 以前から
through($relationship)
@param string|\Illuminate\Database\Eloquent\Relations\HasMany<TIntermediateModel, covariant $this>|\Illuminate\Database\Eloquent\Relations\HasOne<TIntermediateModel, covariant $this> $relationship
@return ( $relationship is string ? \Illuminate\Database\Eloquent\PendingHasThroughRelationship<\Illuminate\Database\Eloquent\Model, $this> : ( $relationship is \Illuminate\Database\Eloquent\Relations\HasMany<TIntermediateModel, $this> ? \Illuminate\Database\Eloquent\PendingHasThroughRelationship<TIntermediateModel, $this, \Illuminate\Database\Eloquent\Relations\HasMany<TIntermediateModel, $this>> : \Illuminate\Database\Eloquent\PendingHasThroughRelationship<TIntermediateModel, $this, \Illuminate\Database\Eloquent\Relations\HasOne<TIntermediateModel, $this>> ) )
-
v11.0.0
追加
- 変更後
through($relationship) [@param string|\Illuminate\Database\Eloquent\Relations\HasMany|\Illuminate\Database\Eloquent\Relations\HasOne $relationship, @return \Illuminate\Database\Eloquent\PendingHasThroughRelationship]
-
v11.15.0
シグネチャ変更
- 変更前
through($relationship) [@param string|\Illuminate\Database\Eloquent\Relations\HasMany|\Illuminate\Database\Eloquent\Relations\HasOne $relationship, @return \Illuminate\Database\Eloquent\PendingHasThroughRelationship]- 変更後
through($relationship) [@param string|\Illuminate\Database\Eloquent\Relations\HasMany<TIntermediateModel, covariant $this>|\Illuminate\Database\Eloquent\Relations\HasOne<TIntermediateModel, covariant $this> $relationship, @return ( $relationship is string ? \Illuminate\Database\Eloquent\PendingHasThroughRelationship<\Illuminate\Database\Eloquent\Model, $this> : \Illuminate\Database\Eloquent\PendingHasThroughRelationship<TIntermediateModel, $this> )]
-
v11.31.0
シグネチャ変更
- 変更前
through($relationship) [@param string|\Illuminate\Database\Eloquent\Relations\HasMany<TIntermediateModel, covariant $this>|\Illuminate\Database\Eloquent\Relations\HasOne<TIntermediateModel, covariant $this> $relationship, @return ( $relationship is string ? \Illuminate\Database\Eloquent\PendingHasThroughRelationship<\Illuminate\Database\Eloquent\Model, $this> : \Illuminate\Database\Eloquent\PendingHasThroughRelationship<TIntermediateModel, $this> )]- 変更後
through($relationship) [@param string|\Illuminate\Database\Eloquent\Relations\HasMany<TIntermediateModel, covariant $this>|\Illuminate\Database\Eloquent\Relations\HasOne<TIntermediateModel, covariant $this> $relationship, @return ( $relationship is string ? \Illuminate\Database\Eloquent\PendingHasThroughRelationship<\Illuminate\Database\Eloquent\Model, $this> : ( $relationship is \Illuminate\Database\Eloquent\Relations\HasMany<TIntermediateModel, $this> ? \Illuminate\Database\Eloquent\PendingHasThroughRelationship<TIntermediateModel, $this, \Illuminate\Database\Eloquent\Relations\HasMany<TIntermediateModel, $this>> : \Illuminate\Database\Eloquent\PendingHasThroughRelationship<TIntermediateModel, $this, \Illuminate\Database\Eloquent\Relations\HasOne<TIntermediateModel, $this>> ) )]
touches
v11.0.0 以前から
touches($relation)
@param string $relation
@return bool
-
v11.0.0
追加
- 変更後
touches($relation) [@param string $relation, @return bool]
touchOwners
v11.0.0 以前から
touchOwners()
@return void
-
v11.0.0
追加
- 変更後
touchOwners() [@return void]
unsetRelation
v11.0.0 以前から
unsetRelation($relation)
@param string $relation
@return $this
-
v11.0.0
追加
- 変更後
unsetRelation($relation) [@param string $relation, @return $this]
unsetRelations
v11.0.0 以前から
unsetRelations()
@return $this
-
v11.0.0
追加
- 変更後
unsetRelations() [@return $this]
withoutRelation
v12.54.0 から
withoutRelation($relations)
@param array|string $relations
@return $this
-
v12.54.0
追加
- 変更後
withoutRelation($relations) [@param array|string $relations, @return $this]
withoutRelations
v11.0.0 以前から
withoutRelations()
@return $this
-
v11.0.0
追加
- 変更後
withoutRelations() [@return $this]
withRelationshipAutoloading
v12.9.0 から
withRelationshipAutoloading()
@return $this
-
v12.9.0
追加
- 変更後
withRelationshipAutoloading() [@return $this]