src/Traits/Module/HasFilters.php
protected function addSoftDeletesScopes($model)
    {
        if (array_key_exists('Illuminate\Database\Eloquent\SoftDeletes', class_uses($model))) {
            foreach ($this->softDeletesScopes() as $method => $name) {
                $this->addScope(
                    with(new Scope($method))
                        ->setTitle($name)
                        ->setQuery([$model, $method])
                );
            }
        }
    }
protected function addSoftDeletesScopes($model)
    {
        if (array_key_exists('Illuminate\Database\Eloquent\SoftDeletes', class_uses($model))) {
            foreach ($this->softDeletesScopes() as $method => $name) {
                $this->addScope(
                    with(new Scope($method))
                        ->setTitle($name)
                        ->setQuery([$model, $method])
                );
            }
        }
    }
protected function addSoftDeletesScopes ( $ model ) { if ( array_key_exists ( 'Illuminate\Database\Eloquent\SoftDeletes' , class_uses ( $ model ) ) ) { foreach ( $ this -> softDeletesScopes ( ) as $ method => $ name ) { $ this -> addScope ( with ( new Scope ( $ method ) ) -> setTitle ( $ name ) -> setQuery ( [ $ model , $ method ] ) ) ; } } }
Add SoftDeletes scopes if model uses that trait.

@param $model
Add SoftDeletes scopes if model uses that trait .