HasTimestamps

Illuminate\Database\Eloquent\Concerns\HasTimestamps

trait src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php

freshTimestamp

v11.0.0 以前から

freshTimestamp()
@return \Illuminate\Support\Carbon
  1. v11.0.0 追加
    変更後
    freshTimestamp() [@return \Illuminate\Support\Carbon]

freshTimestampString

v11.0.0 以前から

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

getCreatedAtColumn

v11.0.0 以前から

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

getQualifiedCreatedAtColumn

v11.0.0 以前から

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

getQualifiedUpdatedAtColumn

v11.0.0 以前から

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

getUpdatedAtColumn

v11.0.0 以前から

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

initializeHasTimestamps

v13.0.0 から

initializeHasTimestamps()
@return void
  1. v13.0.0 追加
    変更後
    initializeHasTimestamps() [@return void]

isIgnoringTimestamps

v11.0.0 以前から

static

static isIgnoringTimestamps($class = null)
@param string|null $class
@return bool
  1. v11.0.0 追加
    変更後
    static isIgnoringTimestamps($class = null) [@param string|null $class, @return bool]

setCreatedAt

v11.0.0 以前から

setCreatedAt($value)
@param mixed $value
@return $this
  1. v11.0.0 追加
    変更後
    setCreatedAt($value) [@param mixed $value, @return $this]

setUpdatedAt

v11.0.0 以前から

setUpdatedAt($value)
@param mixed $value
@return $this
  1. v11.0.0 追加
    変更後
    setUpdatedAt($value) [@param mixed $value, @return $this]

touch

v11.0.0 以前から

touch($attribute = null)
@param array|string|null $attribute
@return bool
  1. v11.0.0 追加
    変更後
    touch($attribute = null) [@param string|null $attribute, @return bool]
  2. v12.55.0 シグネチャ変更
    変更前
    touch($attribute = null) [@param string|null $attribute, @return bool]
    変更後
    touch($attribute = null) [@param array|string|null $attribute, @return bool]

touchQuietly

v11.0.0 以前から

touchQuietly($attribute = null)
@param array|string|null $attribute
@return bool
  1. v11.0.0 追加
    変更後
    touchQuietly($attribute = null) [@param string|null $attribute, @return bool]
  2. v12.55.0 シグネチャ変更
    変更前
    touchQuietly($attribute = null) [@param string|null $attribute, @return bool]
    変更後
    touchQuietly($attribute = null) [@param array|string|null $attribute, @return bool]

updateTimestamps

v11.0.0 以前から

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

usesTimestamps

v11.0.0 以前から

usesTimestamps()
@return bool
  1. v11.0.0 追加
    変更後
    usesTimestamps() [@return bool]

withoutTimestamps

v11.0.0 以前から

static

static withoutTimestamps(callable $callback)
@param (callable(): TReturn) $callback
@return TReturn
  1. v11.0.0 追加
    変更後
    static withoutTimestamps(callable $callback) [@param callable $callback, @return mixed]
  2. v13.0.0 シグネチャ変更
    変更前
    static withoutTimestamps(callable $callback) [@param callable $callback, @return mixed]
    変更後
    static withoutTimestamps(callable $callback) [@return mixed]
  3. v13.16.0 シグネチャ変更
    変更前
    static withoutTimestamps(callable $callback) [@return mixed]
    変更後
    static withoutTimestamps(callable $callback) [@param (callable(): TReturn) $callback, @return TReturn]

withoutTimestampsOn

v11.0.0 以前から

static

static withoutTimestampsOn($models, $callback)
@param array $models
@param callable(): TReturn $callback
@return TReturn
  1. v11.0.0 追加
    変更後
    static withoutTimestampsOn($models, $callback) [@param array $models, @param callable $callback, @return mixed]
  2. v13.16.0 シグネチャ変更
    変更前
    static withoutTimestampsOn($models, $callback) [@param array $models, @param callable $callback, @return mixed]
    変更後
    static withoutTimestampsOn($models, $callback) [@param array $models, @param callable(): TReturn $callback, @return TReturn]