trait Prunable

Methods

int
pruneAll(int $chunkSize = 1000)

Prune all prunable models in the database.

prunable()

Get the prunable model query.

int|bool|null
prune()

Prune the model in the database.

void
pruning()

Prepare the model for pruning.

Details

at line 21
int pruneAll(int $chunkSize = 1000)

Prune all prunable models in the database.

Parameters

int $chunkSize

Return Value

int

Exceptions

Throwable

at line 59
Builder prunable()

Get the prunable model query.

Return Value

Builder

Exceptions

LogicException

at line 67
int|bool|null prune()

Prune the model in the database.

Return Value

int|bool|null

at line 79
protected void pruning()

Prepare the model for pruning.

Return Value

void