src/Traits/Accountable.php
public function scopeOnlyDeletedBy(Builder $query, Model $user)
    {
        return $query->where(config('accountable.column_names.deleted_by'), $user->getKey());
    }
public function scopeOnlyDeletedBy(Builder $query, Model $user)
    {
        return $query->where(config('accountable.column_names.deleted_by'), $user->getKey());
    }
public function scopeOnlyDeletedBy ( Builder $ query , Model $ user ) { return $ query -> where ( config ( 'accountable.column_names.deleted_by' ) , $ user -> getKey ( ) ) ; }
Scope a query to only include records deleted by a given user.

@param \Illuminate\Database\Eloquent\Builder $query
@param \Illuminate\Database\Eloquent\Model $user

@return \Illuminate\Database\Eloquent\Builder
Scope a query to only include records deleted by a given user .