EnforcesPermissionPartition
trait EnforcesPermissionPartition
Properties
| protected PermissionRegistrar | $permissionPartitionRegistrar | ||
| protected PermissionRelationContext | $permissionRelationContext |
Methods
Initialize the permission partition relation state.
Format an attachment record without allowing partition overrides.
Update an existing pivot without allowing partition movement.
Get and mark lazily loaded relation results.
Initialize and mark eager-loaded relation collections.
Match and mark eager-loaded relation collections.
Reject conflicting caller-supplied partition attributes.
Mark the loaded collection attached to each eager-loaded model.
Details
at line 23
protected void
initializePermissionPartitionRelation(PermissionRegistrar $registrar, PermissionRelationContext $context)
Initialize the permission partition relation state.
at line 34
protected array
formatAttachRecord(int|string $key, mixed $value, array $attributes, bool $hasTimestamps)
Format an attachment record without allowing partition overrides.
at line 58
int
updateExistingPivot(mixed $id, array $attributes, bool $touch = true)
Update an existing pivot without allowing partition movement.
at line 75
Collection
getResults()
Get and mark lazily loaded relation results.
at line 97
array
initRelation(array $models, string $relation)
Initialize and mark eager-loaded relation collections.
at line 111
array
match(array $models, Collection $results, string $relation)
Match and mark eager-loaded relation collections.
at line 122
protected void
ensurePivotMatchesPermissionPartition(array $attributes)
Reject conflicting caller-supplied partition attributes.
at line 141
protected void
markPermissionRelationCollections(array $models, string $relation)
Mark the loaded collection attached to each eager-loaded model.