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

SoftDeletingScope

Implements

Properties

protected

$extensions string[]

All of the extensions to be added to the builder.

Default: array

Methods

public

apply ( Builder $builder , Model $model ) : void

Apply the scope to a given Eloquent query builder.

Parameters

public

extend ( Builder $builder ) : void

Extend the query builder with the needed functions.

Parameters

protected

getDeletedAtColumn ( Builder $builder ) : string

Get the "deleted at" column for the builder.

Parameters

protected

addRestore ( Builder $builder ) : void

Add the restore extension to the builder.

Parameters

protected

addRestoreOrCreate ( Builder $builder ) : void

Add the restore-or-create extension to the builder.

Parameters

protected

addWithTrashed ( Builder $builder ) : void

Add the with-trashed extension to the builder.

Parameters

protected

addWithoutTrashed ( Builder $builder ) : void

Add the without-trashed extension to the builder.

Parameters

protected

addOnlyTrashed ( Builder $builder ) : void

Add the only-trashed extension to the builder.

Parameters