Collection

Illuminate\Database\Eloquent\Collection

class src/Illuminate/Database/Eloquent/Collection.php

append

v11.0.0 以前から

append($attributes)
@param array<array-key, string>|string $attributes
@return $this
  1. v11.0.0 追加
    変更後
    append($attributes) [@param array<array-key, string>|string $attributes, @return $this]

collapse

v11.0.0 以前から

collapse()
@return \Illuminate\Support\Collection<int, mixed>
  1. v11.0.0 追加
    変更後
    collapse() [@return \Illuminate\Support\Collection<int, mixed>]

contains

v11.0.0 以前から

contains($key, $operator = null, $value = null)
@param (callable(TModel, TKey): bool)|TModel|string|int $key
@param mixed $operator
@param mixed $value
@return bool
  1. v11.0.0 追加
    変更後
    contains($key, $operator = null, $value = null) [@param (callable(TModel, TKey): bool)|TModel|string|int $key, @param mixed $operator, @param mixed $value, @return bool]

countBy

v11.0.0 以前から

countBy($countBy = null)
@return \Illuminate\Support\Collection<array-key, int>
  1. v11.0.0 追加
    変更後
    countBy($countBy = null) [@param (callable(TModel, TKey): array-key)|string|null $countBy, @return \Illuminate\Support\Collection<array-key, int>]
  2. v12.44.0 シグネチャ変更
    変更前
    countBy($countBy = null) [@param (callable(TModel, TKey): array-key)|string|null $countBy, @return \Illuminate\Support\Collection<array-key, int>]
    変更後
    countBy($countBy = null) [@return \Illuminate\Support\Collection<array-key, int>]

diff

v11.0.0 以前から

diff($items)
@param iterable<array-key, TModel> $items
@return static
  1. v11.0.0 追加
    変更後
    diff($items) [@param iterable<array-key, TModel> $items, @return static]

doesntContain

v11.42.1 から

doesntContain($key, $operator = null, $value = null)
@param (callable(TModel, TKey): bool)|TModel|string|int $key
@param mixed $operator
@param mixed $value
@return bool
  1. v11.42.1 追加
    変更後
    doesntContain($key, $operator = null, $value = null) [@param (callable(TModel, TKey): bool)|TModel|string|int $key, @param mixed $operator, @param mixed $value, @return bool]

duplicates

v13.33.0 から

duplicates($callback = null, $strict = false)
@param (callable(TModel): mixed)|string|null $callback
@param bool $strict
@return \Illuminate\Support\Collection<array-key, mixed>|static
  1. v13.33.0 追加
    変更後
    duplicates($callback = null, $strict = false) [@param (callable(TModel): mixed)|string|null $callback, @param bool $strict, @return \Illuminate\Support\Collection<array-key, mixed>|static]

duplicatesStrict

v13.33.0 から

duplicatesStrict($callback = null)
@param (callable(TModel): mixed)|string|null $callback
@return \Illuminate\Support\Collection<array-key, mixed>|static
  1. v13.33.0 追加
    変更後
    duplicatesStrict($callback = null) [@param (callable(TModel): mixed)|string|null $callback, @return \Illuminate\Support\Collection<array-key, mixed>|static]

except

v11.0.0 以前から

except($keys)
@param array<array-key, mixed>|null $keys
@return static
  1. v11.0.0 追加
    変更後
    except($keys) [@param array<array-key, mixed>|null $keys, @return static<int, TModel>]
  2. v11.29.0 シグネチャ変更
    変更前
    except($keys) [@param array<array-key, mixed>|null $keys, @return static<int, TModel>]
    変更後
    except($keys) [@param array<array-key, mixed>|null $keys, @return static]

find

v11.0.0 以前から

find($key, $default = null)
@param mixed $key
@param TFindDefault $default
@return ($key is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>) ? static : TModel|TFindDefault)
  1. v11.0.0 追加
    変更後
    find($key, $default = null) [@param mixed $key, @param TFindDefault $default, @return static<TKey, TModel>|TModel|TFindDefault]
  2. v11.29.0 シグネチャ変更
    変更前
    find($key, $default = null) [@param mixed $key, @param TFindDefault $default, @return static<TKey, TModel>|TModel|TFindDefault]
    変更後
    find($key, $default = null) [@param mixed $key, @param TFindDefault $default, @return ($key is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>) ? static : TModel|TFindDefault)]

findOrFail

v11.23.0 から

findOrFail($key)
@param mixed $key
@return TModel
  1. v11.23.0 追加
    変更後
    findOrFail($key) [@param mixed $key, @return TModel]

flatten

v11.0.0 以前から

flatten($depth = INF)
@return \Illuminate\Support\Collection<int, mixed>
  1. v11.0.0 追加
    変更後
    flatten($depth = INF) [@param int $depth, @return \Illuminate\Support\Collection<int, mixed>]
  2. v12.44.0 シグネチャ変更
    変更前
    flatten($depth = INF) [@param int $depth, @return \Illuminate\Support\Collection<int, mixed>]
    変更後
    flatten($depth = INF) [@return \Illuminate\Support\Collection<int, mixed>]

flip

v11.0.0 以前から

flip()
@return \Illuminate\Support\Collection<TModel, TKey>
  1. v11.0.0 追加
    変更後
    flip() [@return \Illuminate\Support\Collection<TModel, TKey>]

fresh

v11.0.0 以前から

fresh($with = [])
@param array<array-key, string>|string $with
@return static
  1. v11.0.0 追加
    変更後
    fresh($with = []) [@param array<array-key, string>|string $with, @return static]

getDictionary

v11.0.0 以前から

getDictionary($items = null)
@param iterable<array-key, TModel>|null $items
@return array<array-key, TModel>
  1. v11.0.0 追加
    変更後
    getDictionary($items = null) [@param iterable<array-key, TModel>|null $items, @return array<array-key, TModel>]

getQueueableClass

v11.0.0 以前から

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

getQueueableConnection

v11.0.0 以前から

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

getQueueableIds

v11.0.0 以前から

getQueueableIds()
@return array<int, mixed>
  1. v11.0.0 追加
    変更後
    getQueueableIds() [@return array<int, mixed>]

getQueueableRelations

v11.0.0 以前から

getQueueableRelations()
@return array<int, string>
  1. v11.0.0 追加
    変更後
    getQueueableRelations() [@return array<int, string>]

intersect

v11.0.0 以前から

intersect($items)
@param iterable<array-key, TModel> $items
@return static
  1. v11.0.0 追加
    変更後
    intersect($items) [@param iterable<array-key, TModel> $items, @return static]

keys

v11.0.0 以前から

keys()
@return \Illuminate\Support\Collection<int, TKey>
  1. v11.0.0 追加
    変更後
    keys() [@return \Illuminate\Support\Collection<int, TKey>]

load

v11.0.0 以前から

load($relations)
@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations
@return $this
  1. v11.0.0 追加
    変更後
    load($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string>|string $relations, @return $this]
  2. v11.15.0 シグネチャ変更
    変更前
    load($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string>|string $relations, @return $this]
    変更後
    load($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations, @return $this]
  3. v11.23.0 シグネチャ変更
    変更前
    load($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations, @return $this]
    変更後
    load($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @return $this]
  4. v11.23.3 シグネチャ変更
    変更前
    load($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @return $this]
    変更後
    load($relations) [@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @return $this]

loadAggregate

v11.0.0 以前から

loadAggregate($relations, $column, $function = null)
@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations
@param string $column
@param string|null $function
@return $this
  1. v11.0.0 追加
    変更後
    loadAggregate($relations, $column, $function = null) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string>|string $relations, @param string $column, @param string|null $function, @return $this]
  2. v11.15.0 シグネチャ変更
    変更前
    loadAggregate($relations, $column, $function = null) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string>|string $relations, @param string $column, @param string|null $function, @return $this]
    変更後
    loadAggregate($relations, $column, $function = null) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations, @param string $column, @param string|null $function, @return $this]
  3. v11.23.0 シグネチャ変更
    変更前
    loadAggregate($relations, $column, $function = null) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations, @param string $column, @param string|null $function, @return $this]
    変更後
    loadAggregate($relations, $column, $function = null) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @param string $column, @param string|null $function, @return $this]
  4. v11.23.3 シグネチャ変更
    変更前
    loadAggregate($relations, $column, $function = null) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @param string $column, @param string|null $function, @return $this]
    変更後
    loadAggregate($relations, $column, $function = null) [@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @param string $column, @param string|null $function, @return $this]

loadAvg

v11.0.0 以前から

loadAvg($relations, $column)
@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations
@param string $column
@return $this
  1. v11.0.0 追加
    変更後
    loadAvg($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string>|string $relations, @param string $column, @return $this]
  2. v11.15.0 シグネチャ変更
    変更前
    loadAvg($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string>|string $relations, @param string $column, @return $this]
    変更後
    loadAvg($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations, @param string $column, @return $this]
  3. v11.23.0 シグネチャ変更
    変更前
    loadAvg($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations, @param string $column, @return $this]
    変更後
    loadAvg($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @param string $column, @return $this]
  4. v11.23.3 シグネチャ変更
    変更前
    loadAvg($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @param string $column, @return $this]
    変更後
    loadAvg($relations, $column) [@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @param string $column, @return $this]

loadCount

v11.0.0 以前から

loadCount($relations)
@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations
@return $this
  1. v11.0.0 追加
    変更後
    loadCount($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string>|string $relations, @return $this]
  2. v11.15.0 シグネチャ変更
    変更前
    loadCount($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string>|string $relations, @return $this]
    変更後
    loadCount($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations, @return $this]
  3. v11.23.0 シグネチャ変更
    変更前
    loadCount($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations, @return $this]
    変更後
    loadCount($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @return $this]
  4. v11.23.3 シグネチャ変更
    変更前
    loadCount($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @return $this]
    変更後
    loadCount($relations) [@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @return $this]

loadExists

v11.0.0 以前から

loadExists($relations)
@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations
@return $this
  1. v11.0.0 追加
    変更後
    loadExists($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string>|string $relations, @return $this]
  2. v11.15.0 シグネチャ変更
    変更前
    loadExists($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string>|string $relations, @return $this]
    変更後
    loadExists($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations, @return $this]
  3. v11.23.0 シグネチャ変更
    変更前
    loadExists($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations, @return $this]
    変更後
    loadExists($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @return $this]
  4. v11.23.3 シグネチャ変更
    変更前
    loadExists($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @return $this]
    変更後
    loadExists($relations) [@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @return $this]

loadMax

v11.0.0 以前から

loadMax($relations, $column)
@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations
@param string $column
@return $this
  1. v11.0.0 追加
    変更後
    loadMax($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string>|string $relations, @param string $column, @return $this]
  2. v11.15.0 シグネチャ変更
    変更前
    loadMax($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string>|string $relations, @param string $column, @return $this]
    変更後
    loadMax($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations, @param string $column, @return $this]
  3. v11.23.0 シグネチャ変更
    変更前
    loadMax($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations, @param string $column, @return $this]
    変更後
    loadMax($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @param string $column, @return $this]
  4. v11.23.3 シグネチャ変更
    変更前
    loadMax($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @param string $column, @return $this]
    変更後
    loadMax($relations, $column) [@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @param string $column, @return $this]

loadMin

v11.0.0 以前から

loadMin($relations, $column)
@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations
@param string $column
@return $this
  1. v11.0.0 追加
    変更後
    loadMin($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string>|string $relations, @param string $column, @return $this]
  2. v11.15.0 シグネチャ変更
    変更前
    loadMin($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string>|string $relations, @param string $column, @return $this]
    変更後
    loadMin($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations, @param string $column, @return $this]
  3. v11.23.0 シグネチャ変更
    変更前
    loadMin($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations, @param string $column, @return $this]
    変更後
    loadMin($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @param string $column, @return $this]
  4. v11.23.3 シグネチャ変更
    変更前
    loadMin($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @param string $column, @return $this]
    変更後
    loadMin($relations, $column) [@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @param string $column, @return $this]

loadMissing

v11.0.0 以前から

loadMissing($relations)
@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations
@return $this
  1. v11.0.0 追加
    変更後
    loadMissing($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string>|string $relations, @return $this]
  2. v11.15.0 シグネチャ変更
    変更前
    loadMissing($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string>|string $relations, @return $this]
    変更後
    loadMissing($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations, @return $this]
  3. v11.23.0 シグネチャ変更
    変更前
    loadMissing($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations, @return $this]
    変更後
    loadMissing($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @return $this]
  4. v11.23.3 シグネチャ変更
    変更前
    loadMissing($relations) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @return $this]
    変更後
    loadMissing($relations) [@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @return $this]

loadMissingRelationshipChain

v12.8.0 から

loadMissingRelationshipChain(array $tuples)
@param array<int, array<string, class-string>> $tuples
@return void
  1. v12.8.0 追加
    変更後
    loadMissingRelationshipChain(array $tuples) [@return void]
  2. v13.21.0 シグネチャ変更
    変更前
    loadMissingRelationshipChain(array $tuples) [@return void]
    変更後
    loadMissingRelationshipChain(array $tuples) [@param array<int, array<string, class-string>> $tuples, @return void]

loadMorph

v11.0.0 以前から

loadMorph($relation, $relations)
@param string $relation
@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string> $relations
@return $this
  1. v11.0.0 追加
    変更後
    loadMorph($relation, $relations) [@param string $relation, @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string> $relations, @return $this]
  2. v11.15.0 シグネチャ変更
    変更前
    loadMorph($relation, $relations) [@param string $relation, @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string> $relations, @return $this]
    変更後
    loadMorph($relation, $relations) [@param string $relation, @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string> $relations, @return $this]
  3. v11.23.0 シグネチャ変更
    変更前
    loadMorph($relation, $relations) [@param string $relation, @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string> $relations, @return $this]
    変更後
    loadMorph($relation, $relations) [@param string $relation, @param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string> $relations, @return $this]
  4. v11.23.3 シグネチャ変更
    変更前
    loadMorph($relation, $relations) [@param string $relation, @param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string> $relations, @return $this]
    変更後
    loadMorph($relation, $relations) [@param string $relation, @param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string> $relations, @return $this]

loadMorphCount

v11.0.0 以前から

loadMorphCount($relation, $relations)
@param string $relation
@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string> $relations
@return $this
  1. v11.0.0 追加
    変更後
    loadMorphCount($relation, $relations) [@param string $relation, @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string> $relations, @return $this]
  2. v11.15.0 シグネチャ変更
    変更前
    loadMorphCount($relation, $relations) [@param string $relation, @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string> $relations, @return $this]
    変更後
    loadMorphCount($relation, $relations) [@param string $relation, @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string> $relations, @return $this]
  3. v11.23.0 シグネチャ変更
    変更前
    loadMorphCount($relation, $relations) [@param string $relation, @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string> $relations, @return $this]
    変更後
    loadMorphCount($relation, $relations) [@param string $relation, @param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string> $relations, @return $this]
  4. v11.23.3 シグネチャ変更
    変更前
    loadMorphCount($relation, $relations) [@param string $relation, @param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string> $relations, @return $this]
    変更後
    loadMorphCount($relation, $relations) [@param string $relation, @param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string> $relations, @return $this]

loadSum

v11.0.0 以前から

loadSum($relations, $column)
@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations
@param string $column
@return $this
  1. v11.0.0 追加
    変更後
    loadSum($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string>|string $relations, @param string $column, @return $this]
  2. v11.15.0 シグネチャ変更
    変更前
    loadSum($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string>|string $relations, @param string $column, @return $this]
    変更後
    loadSum($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations, @param string $column, @return $this]
  3. v11.23.0 シグネチャ変更
    変更前
    loadSum($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder<TModel>): mixed)|string>|string $relations, @param string $column, @return $this]
    変更後
    loadSum($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @param string $column, @return $this]
  4. v11.23.3 シグネチャ変更
    変更前
    loadSum($relations, $column) [@param array<array-key, (callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @param string $column, @return $this]
    変更後
    loadSum($relations, $column) [@param array<array-key, array|(callable(\Illuminate\Database\Eloquent\Relations\Relation<*, *, *>): mixed)|string>|string $relations, @param string $column, @return $this]

makeHidden

v11.0.0 以前から

makeHidden($attributes)
@param array<array-key, string>|string $attributes
@return $this
  1. v11.0.0 追加
    変更後
    makeHidden($attributes) [@param array<array-key, string>|string $attributes, @return $this]

makeVisible

v11.0.0 以前から

makeVisible($attributes)
@param array<array-key, string>|string $attributes
@return $this
  1. v11.0.0 追加
    変更後
    makeVisible($attributes) [@param array<array-key, string>|string $attributes, @return $this]

map

v11.0.0 以前から

map(callable $callback)
@param callable(TModel, TKey): TMapValue $callback
@return \Illuminate\Support\Collection<TKey, TMapValue>|static<TKey, TMapValue>
  1. v11.0.0 追加
    変更後
    map(callable $callback) [@param callable(TModel, TKey): TMapValue $callback, @return \Illuminate\Support\Collection<TKey, TMapValue>|static<TKey, TMapValue>]

mapWithKeys

v11.0.0 以前から

mapWithKeys(callable $callback)
@param callable(TModel, TKey): array<TMapWithKeysKey, TMapWithKeysValue> $callback
@return \Illuminate\Support\Collection<TMapWithKeysKey, TMapWithKeysValue>|static<TMapWithKeysKey, TMapWithKeysValue>
  1. v11.0.0 追加
    変更後
    mapWithKeys(callable $callback) [@param callable(TModel, TKey): array<TMapWithKeysKey, TMapWithKeysValue> $callback, @return \Illuminate\Support\Collection<TMapWithKeysKey, TMapWithKeysValue>|static<TMapWithKeysKey, TMapWithKeysValue>]

merge

v11.0.0 以前から

merge($items)
@param iterable<array-key, TModel> $items
@return static
  1. v11.0.0 追加
    変更後
    merge($items) [@param iterable<array-key, TModel> $items, @return static]

mergeHidden

v12.43.0 から

mergeHidden($attributes)
@param array<array-key, string>|string $attributes
@return $this
  1. v12.43.0 追加
    変更後
    mergeHidden($attributes) [@param array<array-key, string>|string $attributes, @return $this]

mergeVisible

v12.43.0 から

mergeVisible($attributes)
@param array<array-key, string>|string $attributes
@return $this
  1. v12.43.0 追加
    変更後
    mergeVisible($attributes) [@param array<array-key, string>|string $attributes, @return $this]

modelKeys

v11.0.0 以前から

modelKeys()
@return array<int, array-key>
  1. v11.0.0 追加
    変更後
    modelKeys() [@return array<int, array-key>]

only

v11.0.0 以前から

only($keys)
@param array<array-key, mixed>|null $keys
@return static
  1. v11.0.0 追加
    変更後
    only($keys) [@param array<array-key, mixed>|null $keys, @return static<int, TModel>]
  2. v11.29.0 シグネチャ変更
    変更前
    only($keys) [@param array<array-key, mixed>|null $keys, @return static<int, TModel>]
    変更後
    only($keys) [@param array<array-key, mixed>|null $keys, @return static]

pad

v11.0.0 以前から

pad($size, $value)
@return \Illuminate\Support\Collection<int, TModel|TPadValue>
  1. v11.0.0 追加
    変更後
    pad($size, $value) [@param int $size, @param TPadValue $value, @return \Illuminate\Support\Collection<int, TModel|TPadValue>]
  2. v12.44.0 シグネチャ変更
    変更前
    pad($size, $value) [@param int $size, @param TPadValue $value, @return \Illuminate\Support\Collection<int, TModel|TPadValue>]
    変更後
    pad($size, $value) [@return \Illuminate\Support\Collection<int, TModel|TPadValue>]

partition

v12.0.0 から

partition($key, $operator = null, $value = null)
@return \Illuminate\Support\Collection<int<0, 1>, static<TKey, TModel>>
  1. v12.0.0 追加
    変更後
    partition($key, $operator = null, $value = null) [@param (callable(TModel, TKey): bool)|TModel|string $key, @param TModel|string|null $operator, @param TModel|null $value, @return \Illuminate\Support\Collection<int<0, 1>, static<TKey, TModel>>]
  2. v12.22.0 シグネチャ変更
    変更前
    partition($key, $operator = null, $value = null) [@param (callable(TModel, TKey): bool)|TModel|string $key, @param TModel|string|null $operator, @param TModel|null $value, @return \Illuminate\Support\Collection<int<0, 1>, static<TKey, TModel>>]
    変更後
    partition($key, $operator = null, $value = null) [@param (callable(TModel, TKey): bool)|TModel|string $key, @param mixed $operator, @param mixed $value, @return \Illuminate\Support\Collection<int<0, 1>, static<TKey, TModel>>]
  3. v12.44.0 シグネチャ変更
    変更前
    partition($key, $operator = null, $value = null) [@param (callable(TModel, TKey): bool)|TModel|string $key, @param mixed $operator, @param mixed $value, @return \Illuminate\Support\Collection<int<0, 1>, static<TKey, TModel>>]
    変更後
    partition($key, $operator = null, $value = null) [@return \Illuminate\Support\Collection<int<0, 1>, static<TKey, TModel>>]

pluck

v11.0.0 以前から

pluck($value, $key = null)
@return \Illuminate\Support\Collection<array-key, mixed>
  1. v11.0.0 追加
    変更後
    pluck($value, $key = null) [@param string|array<array-key, string> $value, @param string|null $key, @return \Illuminate\Support\Collection<array-key, mixed>]
  2. v11.7.0 シグネチャ変更
    変更前
    pluck($value, $key = null) [@param string|array<array-key, string> $value, @param string|null $key, @return \Illuminate\Support\Collection<array-key, mixed>]
    変更後
    pluck($value, $key = null) [@param string|array<array-key, string>|null $value, @param string|null $key, @return \Illuminate\Support\Collection<array-key, mixed>]
  3. v12.20.0 シグネチャ変更
    変更前
    pluck($value, $key = null) [@param string|array<array-key, string>|null $value, @param string|null $key, @return \Illuminate\Support\Collection<array-key, mixed>]
    変更後
    pluck($value, $key = null) [@param string|array<array-key, string>|Closure|null $value, @param string|Closure|null $key, @return \Illuminate\Support\Collection<array-key, mixed>]
  4. v12.44.0 シグネチャ変更
    変更前
    pluck($value, $key = null) [@param string|array<array-key, string>|Closure|null $value, @param string|Closure|null $key, @return \Illuminate\Support\Collection<array-key, mixed>]
    変更後
    pluck($value, $key = null) [@return \Illuminate\Support\Collection<array-key, mixed>]

setAppends

v12.36.0 から

setAppends(array $appends)
@param array<array-key, mixed> $appends
@return $this
  1. v12.36.0 追加
    変更後
    setAppends(array $appends) [@param array<array-key, mixed> $appends, @return $this]

setHidden

v11.0.0 以前から

setHidden($hidden)
@param array<int, string> $hidden
@return $this
  1. v11.0.0 追加
    変更後
    setHidden($hidden) [@param array<int, string> $hidden, @return $this]

setVisible

v11.0.0 以前から

setVisible($visible)
@param array<int, string> $visible
@return $this
  1. v11.0.0 追加
    変更後
    setVisible($visible) [@param array<int, string> $visible, @return $this]

toQuery

v11.0.0 以前から

toQuery()
@return \Illuminate\Database\Eloquent\Builder<TModel>
  1. v11.0.0 追加
    変更後
    toQuery() [@return \Illuminate\Database\Eloquent\Builder]
  2. v11.15.0 シグネチャ変更
    変更前
    toQuery() [@return \Illuminate\Database\Eloquent\Builder]
    変更後
    toQuery() [@return \Illuminate\Database\Eloquent\Builder<TModel>]

unique

v11.0.0 以前から

unique($key = null, $strict = false)
@param (callable(TModel, TKey): mixed)|string|null $key
@param bool $strict
@return static
  1. v11.0.0 追加
    変更後
    unique($key = null, $strict = false) [@param (callable(TModel, TKey): mixed)|string|null $key, @param bool $strict, @return static<int, TModel>]
  2. v11.29.0 シグネチャ変更
    変更前
    unique($key = null, $strict = false) [@param (callable(TModel, TKey): mixed)|string|null $key, @param bool $strict, @return static<int, TModel>]
    変更後
    unique($key = null, $strict = false) [@param (callable(TModel, TKey): mixed)|string|null $key, @param bool $strict, @return static]

withoutAppends

v12.36.0 から

withoutAppends()
@return $this
  1. v12.36.0 追加
    変更後
    withoutAppends() [@return $this]

withRelationshipAutoloading

v12.8.0 から

withRelationshipAutoloading()
@return $this
  1. v12.8.0 追加
    変更後
    withRelationshipAutoloading() [@return $this]

zip

v11.0.0 以前から

zip($items)
@return \Illuminate\Support\Collection<int, \Illuminate\Support\Collection<int, TModel|TZipValue>>
  1. v11.0.0 追加
    変更後
    zip($items) [@param \Illuminate\Contracts\Support\Arrayable<array-key, TZipValue>|iterable<array-key, TZipValue> $items, @return \Illuminate\Support\Collection<int, \Illuminate\Support\Collection<int, TModel|TZipValue>>]
  2. v12.44.0 シグネチャ変更
    変更前
    zip($items) [@param \Illuminate\Contracts\Support\Arrayable<array-key, TZipValue>|iterable<array-key, TZipValue> $items, @return \Illuminate\Support\Collection<int, \Illuminate\Support\Collection<int, TModel|TZipValue>>]
    変更後
    zip($items) [@return \Illuminate\Support\Collection<int, \Illuminate\Support\Collection<int, TModel|TZipValue>>]