HasPermissionPartition
trait HasPermissionPartition
Methods
Boot the permission partition global scope.
Populate the permission partition before an insert that ignores unique conflicts.
Stamp the current partition before either model insertion path runs its listeners.
Get the authoritative attributes for a partitioned insert.
Add the permission partition to an existing model select query.
Create a partitioned query for queued model restoration.
Get the permission registrar used by the partition concern.
Details
at line 18
static void
bootHasPermissionPartition()
Boot the permission partition global scope.
at line 26
protected bool
performInsert(Builder $query)
Populate the permission partition before model creation events run.
at line 36
protected bool
performInsertOrIgnore(Builder $query, array|string|null $uniqueBy)
Populate the permission partition before an insert that ignores unique conflicts.
at line 46
protected void
setPermissionPartitionForInsert()
Stamp the current partition before either model insertion path runs its listeners.
at line 62
protected array
getAttributesForInsert()
Get the authoritative attributes for a partitioned insert.
at line 79
protected Builder
setKeysForSaveQuery(Builder $query)
Add the permission partition to an existing model write query.
at line 114
protected Builder
setKeysForSelectQuery(Builder $query)
Add the permission partition to an existing model select query.
at line 134
Builder
newQueryForRestoration(array|int|string $ids)
Create a partitioned query for queued model restoration.
at line 147
protected PermissionRegistrar
permissionPartitionRegistrar()
Get the permission registrar used by the partition concern.