trait CanReplicateRecords (View source)

Traits

Properties

protected Closure|null $using from  CanCustomizeProcess
protected Closure|null $afterReplicaSavedCallback
protected Closure|null $beforeReplicaSavedCallback
protected array|Closure|null $excludedAttributes
protected Closure|null $mutateRecordDataUsing

Methods

using(Closure|null $using)

No description

process(Closure|null $default, array $parameters = [])

No description

static string|null
getDefaultName()

No description

void
setUp()

No description

beforeReplicaSaved(Closure $callback)

No description

afterReplicaSaved(Closure $callback)

No description

excludeAttributes(array|Closure|null $attributes)

No description

void
callBeforeReplicaSaved(Model $replica)

No description

callAfterReplicaSaved(Model $replica)

No description

array|null
getExcludedAttributes()

No description

mutateRecordDataUsing(Closure|null $callback)

No description

Details

CanCustomizeProcess using(Closure|null $using)

No description

Parameters

Closure|null $using

Return Value

CanCustomizeProcess

process(Closure|null $default, array $parameters = [])

No description

Parameters

Closure|null $default
array $parameters

static string|null getDefaultName()

No description

Return Value

string|null

protected void setUp()

No description

Return Value

void

CanReplicateRecords beforeReplicaSaved(Closure $callback)

No description

Parameters

Closure $callback

Return Value

CanReplicateRecords

CanReplicateRecords afterReplicaSaved(Closure $callback)

No description

Parameters

Closure $callback

Return Value

CanReplicateRecords

CanReplicateRecords excludeAttributes(array|Closure|null $attributes)

No description

Parameters

array|Closure|null $attributes

Return Value

CanReplicateRecords

void callBeforeReplicaSaved(Model $replica)

No description

Parameters

Model $replica

Return Value

void

callAfterReplicaSaved(Model $replica)

No description

Parameters

Model $replica

array|null getExcludedAttributes()

No description

Return Value

array|null

CanReplicateRecords mutateRecordDataUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

CanReplicateRecords