W3cubDocs

/Laravel 5.4

SoftDeletingScope

class SoftDeletingScope implements Scope (View source)

Methods

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.

Details

void apply(Builder $builder, Model $model)

Apply the scope to a given Eloquent query builder.

Parameters

Builder $builder
Model $model

Return Value

void

void extend(Builder $builder)

Extend the query builder with the needed functions.

Parameters

Builder $builder

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Database/Eloquent/SoftDeletingScope.html