HasGlobalScopes

Illuminate\Database\Eloquent\Concerns\HasGlobalScopes

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

addGlobalScope

v11.0.0 以前から

static

static addGlobalScope($scope, $implementation = null)
@param \Illuminate\Database\Eloquent\Scope|(\Closure(\Illuminate\Database\Eloquent\Builder<static>): mixed)|string $scope
@param \Illuminate\Database\Eloquent\Scope|(\Closure(\Illuminate\Database\Eloquent\Builder<static>): mixed)|null $implementation
@return mixed
  1. v11.0.0 追加
    変更後
    static addGlobalScope($scope, $implementation = null) [@param \Illuminate\Database\Eloquent\Scope|\Closure|string $scope, @param \Illuminate\Database\Eloquent\Scope|\Closure|null $implementation, @return mixed]
  2. v11.43.2 シグネチャ変更
    変更前
    static addGlobalScope($scope, $implementation = null) [@param \Illuminate\Database\Eloquent\Scope|\Closure|string $scope, @param \Illuminate\Database\Eloquent\Scope|\Closure|null $implementation, @return mixed]
    変更後
    static addGlobalScope($scope, $implementation = null) [@param \Illuminate\Database\Eloquent\Scope|(\Closure(\Illuminate\Database\Eloquent\Builder<static>): mixed)|string $scope, @param \Illuminate\Database\Eloquent\Scope|(\Closure(\Illuminate\Database\Eloquent\Builder<static>): mixed)|null $implementation, @return mixed]

addGlobalScopes

v11.0.0 以前から

static

static addGlobalScopes(array $scopes)
@param array $scopes
@return void
  1. v11.0.0 追加
    変更後
    static addGlobalScopes(array $scopes) [@param array $scopes, @return void]

bootHasGlobalScopes

v11.0.0 以前から

static

static bootHasGlobalScopes()
@return void
  1. v11.0.0 追加
    変更後
    static bootHasGlobalScopes() [@return void]

getAllGlobalScopes

v11.0.0 以前から

static

static getAllGlobalScopes()
@return array
  1. v11.0.0 追加
    変更後
    static getAllGlobalScopes() [@return array]

getGlobalScope

v11.0.0 以前から

static

static getGlobalScope($scope)
@param \Illuminate\Database\Eloquent\Scope|string $scope
@return \Illuminate\Database\Eloquent\Scope|(\Closure(\Illuminate\Database\Eloquent\Builder<static>): mixed)|null
  1. v11.0.0 追加
    変更後
    static getGlobalScope($scope) [@param \Illuminate\Database\Eloquent\Scope|string $scope, @return \Illuminate\Database\Eloquent\Scope|\Closure|null]
  2. v11.43.2 シグネチャ変更
    変更前
    static getGlobalScope($scope) [@param \Illuminate\Database\Eloquent\Scope|string $scope, @return \Illuminate\Database\Eloquent\Scope|\Closure|null]
    変更後
    static getGlobalScope($scope) [@param \Illuminate\Database\Eloquent\Scope|string $scope, @return \Illuminate\Database\Eloquent\Scope|(\Closure(\Illuminate\Database\Eloquent\Builder<static>): mixed)|null]

getGlobalScopes

v11.0.0 以前から

getGlobalScopes()
@return array
  1. v11.0.0 追加
    変更後
    getGlobalScopes() [@return array]

hasGlobalScope

v11.0.0 以前から

static

static hasGlobalScope($scope)
@param \Illuminate\Database\Eloquent\Scope|string $scope
@return bool
  1. v11.0.0 追加
    変更後
    static hasGlobalScope($scope) [@param \Illuminate\Database\Eloquent\Scope|string $scope, @return bool]

resolveGlobalScopeAttributes

v11.0.0 以前から

static

static resolveGlobalScopeAttributes()
@return array
  1. v11.0.0 追加
    変更後
    static resolveGlobalScopeAttributes() [@return array]

setAllGlobalScopes

v11.0.0 以前から

static

static setAllGlobalScopes($scopes)
@param array $scopes
@return void
  1. v11.0.0 追加
    変更後
    static setAllGlobalScopes($scopes) [@param array $scopes, @return void]