SoftDeletingScope
class SoftDeletingScope implements Scope
Properties
| protected string[] | $extensions | All of the extensions to be added to the builder. |
Methods
string
void
void
void
void
void
void
Details
at line 27
void
apply(Builder $builder, Model $model)
Apply the scope to a given Eloquent query builder.
at line 37
void
extend(Builder $builder)
Extend the query builder with the needed functions.
at line 57
protected string
getDeletedAtColumn(Builder $builder)
Get the "deleted at" column for the builder.
at line 71
protected void
addRestore(Builder $builder)
Add the restore extension to the builder.
at line 85
protected void
addRestoreOrCreate(Builder $builder)
Add the restore-or-create extension to the builder.
at line 101
protected void
addCreateOrRestore(Builder $builder)
Add the create-or-restore extension to the builder.
at line 117
protected void
addWithTrashed(Builder $builder)
Add the with-trashed extension to the builder.
at line 134
protected void
addWithoutTrashed(Builder $builder)
Add the without-trashed extension to the builder.
at line 153
protected void
addOnlyTrashed(Builder $builder)
Add the only-trashed extension to the builder.