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
- $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
addCreateOrRestore ( Builder $builder ) : void
Add the create-or-restore extension to the builder.
Parameters
- $builder Builder
protected
addWithTrashed ( Builder $builder ) : void
Add the with-trashed extension to the builder.
Parameters
- $builder Builder