PHP Класс Nanigans\SingleTableInheritance\SingleTableInheritanceScope

Наследование: implements Illuminate\Database\Eloquent\ScopeInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
apply ( Builder $builder, Model $model ) : void Apply the scope to a given Eloquent query builder.
remove ( Builder $builder, Model $model ) : void Remove the scope from the given Eloquent query builder.

Защищенные методы

Метод Описание
isSingleTableInheritanceConstraint ( array $where, string $column ) : boolean Determine if the given where clause is a single table inheritance constraint.

Описание методов

apply() публичный Метод

Apply the scope to a given Eloquent query builder.
public apply ( Builder $builder, Model $model ) : void
$builder Illuminate\Database\Eloquent\Builder
$model Illuminate\Database\Eloquent\Model
Результат void

isSingleTableInheritanceConstraint() защищенный Метод

Determine if the given where clause is a single table inheritance constraint.
protected isSingleTableInheritanceConstraint ( array $where, string $column ) : boolean
$where array
$column string
Результат boolean

remove() публичный Метод

Remove the scope from the given Eloquent query builder.
public remove ( Builder $builder, Model $model ) : void
$builder Illuminate\Database\Eloquent\Builder
$model Illuminate\Database\Eloquent\Model
Результат void