AsPivot

Illuminate\Database\Eloquent\Relations\Concerns\AsPivot

trait src/Illuminate/Database/Eloquent/Relations/Concerns/AsPivot.php

delete

v11.0.0 以前から

delete()
@return int
  1. v11.0.0 追加
    変更後
    delete() [@return int]

fromAttributes

v11.0.0 以前から

static

static fromAttributes(Illuminate\Database\Eloquent\Model $parent, $attributes, $table, $exists = false)
@param \Illuminate\Database\Eloquent\Model $parent
@param array $attributes
@param string $table
@param bool $exists
@return static
  1. v11.0.0 追加
    変更後
    static fromAttributes(Illuminate\Database\Eloquent\Model $parent, $attributes, $table, $exists = false) [@param \Illuminate\Database\Eloquent\Model $parent, @param array $attributes, @param string $table, @param bool $exists, @return static]

fromRawAttributes

v11.0.0 以前から

static

static fromRawAttributes(Illuminate\Database\Eloquent\Model $parent, $attributes, $table, $exists = false)
@param \Illuminate\Database\Eloquent\Model $parent
@param array $attributes
@param string $table
@param bool $exists
@return static
  1. v11.0.0 追加
    変更後
    static fromRawAttributes(Illuminate\Database\Eloquent\Model $parent, $attributes, $table, $exists = false) [@param \Illuminate\Database\Eloquent\Model $parent, @param array $attributes, @param string $table, @param bool $exists, @return static]

getCreatedAtColumn

v11.0.0 以前から

getCreatedAtColumn()
@return string
  1. v11.0.0 追加
    変更後
    getCreatedAtColumn() [@return string]

getForeignKey

v11.0.0 以前から

getForeignKey()
@return string
  1. v11.0.0 追加
    変更後
    getForeignKey() [@return string]

getOtherKey

v11.0.0 以前から

getOtherKey()
@return string
  1. v11.0.0 追加
    変更後
    getOtherKey() [@return string]

getQueueableId

v11.0.0 以前から

getQueueableId()
@return mixed
  1. v11.0.0 追加
    変更後
    getQueueableId() [@return mixed]

getRelatedKey

v11.0.0 以前から

getRelatedKey()
@return string
  1. v11.0.0 追加
    変更後
    getRelatedKey() [@return string]

getTable

v11.0.0 以前から

getTable()
@return string
  1. v11.0.0 追加
    変更後
    getTable() [@return string]

getUpdatedAtColumn

v11.0.0 以前から

getUpdatedAtColumn()
@return string
  1. v11.0.0 追加
    変更後
    getUpdatedAtColumn() [@return string]

hasTimestampAttributes

v11.0.0 以前から

hasTimestampAttributes($attributes = null)
@param array|null $attributes
@return bool
  1. v11.0.0 追加
    変更後
    hasTimestampAttributes($attributes = null) [@param array|null $attributes, @return bool]

newQueryForRestoration

v11.0.0 以前から

newQueryForRestoration($ids)
@param int[]|string[]|string $ids
@return \Illuminate\Database\Eloquent\Builder<static>
  1. v11.0.0 追加
    変更後
    newQueryForRestoration($ids) [@param int[]|string[]|string $ids, @return \Illuminate\Database\Eloquent\Builder]
  2. v11.15.0 シグネチャ変更
    変更前
    newQueryForRestoration($ids) [@param int[]|string[]|string $ids, @return \Illuminate\Database\Eloquent\Builder]
    変更後
    newQueryForRestoration($ids) [@param int[]|string[]|string $ids, @return \Illuminate\Database\Eloquent\Builder<static>]

setPivotKeys

v11.0.0 以前から

setPivotKeys($foreignKey, $relatedKey)
@param string $foreignKey
@param string $relatedKey
@return $this
  1. v11.0.0 追加
    変更後
    setPivotKeys($foreignKey, $relatedKey) [@param string $foreignKey, @param string $relatedKey, @return $this]

setRelatedModel

v11.35.0 から

setRelatedModel(?Illuminate\Database\Eloquent\Model $related = null)
@param \Illuminate\Database\Eloquent\Model|null $related
@return $this
  1. v11.35.0 追加
    変更後
    setRelatedModel(?Illuminate\Database\Eloquent\Model $related = null) [@param \Illuminate\Database\Eloquent\Model|null $related, @return $this]

unsetRelations

v11.0.0 以前から

unsetRelations()
@return $this
  1. v11.0.0 追加
    変更後
    unsetRelations() [@return $this]