Methods |
public
|
getGroupColumn(): string|null
Return the name of the "group" field.
Return the name of the "group" field.
|
#
|
public
|
getGroup(bool $original = false): mixed
Return the group for $this.
Return the group for $this.
Parameters
$original |
If set to true, the method will return the "original" value.
|
|
#
|
public
|
scopeWhereGroup(Builder $query, mixed $group)
Restrict the query to the provided group.
Restrict the query to the provided group.
|
#
|
public
|
scopeWhereGroupIn(Builder $query, array $groups)
Restrict the query to the provided groups.
Restrict the query to the provided groups.
|
#
|
public
|
newQueryInSameGroup(boolean $excludeThis = false): Builder
Get a new query builder for the model's group.
Get a new query builder for the model's group.
|
#
|
public
|
isInSameGroupAs(static $model): bool
Check if $this belongs to the same group as the provided $model.
Check if $this belongs to the same group as the provided $model.
Throws
|
#
|