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])
                );
            }
        }
    }