trait Prunable (View source)

Methods

int
pruneAll(int $chunkSize = 1000)

Prune all prunable models in the database.

Builder<static>
prunable()

Get the prunable model query.

bool|null
prune()

Prune the model in the database.

void
pruning()

Prepare the model for pruning.

Details

int pruneAll(int $chunkSize = 1000)

Prune all prunable models in the database.

Parameters

int $chunkSize

Return Value

int

Builder<static> prunable()

Get the prunable model query.

Return Value

Builder<static>

bool|null prune()

Prune the model in the database.

Return Value

bool|null

protected void pruning()

Prepare the model for pruning.

Return Value

void

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.