class SoftDeletingScope implements Scope (View source)
protected string[] | $extensions | All of the extensions to be added to the builder. |
void | apply(Builder $builder, Model $model) Apply the scope to a given Eloquent query builder. | |
void | extend(Builder $builder) Extend the query builder with the needed functions. | |
string | getDeletedAtColumn(Builder $builder) Get the "deleted at" column for the builder. | |
void | addRestore(Builder $builder) Add the restore extension to the builder. | |
void | addWithTrashed(Builder $builder) Add the with-trashed extension to the builder. | |
void | addWithoutTrashed(Builder $builder) Add the without-trashed extension to the builder. | |
void | addOnlyTrashed(Builder $builder) Add the only-trashed extension to the builder. |
Extend the query builder with the needed functions.
Get the "deleted at" column for the builder.
Add the restore extension to the builder.
Add the with-trashed extension to the builder.
Add the without-trashed extension to the builder.
Add the only-trashed extension to the builder.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Database/Eloquent/SoftDeletingScope.html