class Illuminate / Database / Eloquent / SoftDeletingScope

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

addCreateOrRestore ( Builder $builder ) : void

Add the create-or-restore 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