trait Illuminate / Database / Eloquent / Prunable
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

Prunable

Methods

public

pruneAll ( int $chunkSize ) : int

Prune all prunable models in the database.

Parameters

  • $chunkSize int
public

prunable ( ) : Builder

Get the prunable model query.

public

prune ( ) : bool|null

Prune the model in the database.

protected

pruning ( ) : void

Prepare the model for pruning.