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
- $builder Builder
protected
getDeletedAtColumn ( Builder $builder ) : string
Get the "deleted at" column for the builder.
Parameters
- $builder Builder
protected
addRestore ( Builder $builder ) : void
Add the restore extension to the builder.
Parameters
- $builder Builder
protected
addRestoreOrCreate ( Builder $builder ) : void
Add the restore-or-create extension to the builder.
Parameters
- $builder Builder
protected
addWithTrashed ( Builder $builder ) : void
Add the with-trashed extension to the builder.
Parameters
- $builder Builder