src/Traits/Auditable.php
public function scopeOfUpdater(Builder $builder, Model $user): Builder
    {
        return $builder->where('updated_by_type', $user->getMorphClass())->where('updated_by_id', $user->getKey());
    }
public function scopeOfUpdater(Builder $builder, Model $user): Builder
    {
        return $builder->where('updated_by_type', $user->getMorphClass())->where('updated_by_id', $user->getKey());
    }
public function scopeOfUpdater ( Builder $ builder , Model $ user ) : Builder { return $ builder -> where ( 'updated_by_type' , $ user -> getMorphClass ( ) ) -> where ( 'updated_by_id' , $ user -> getKey ( ) ) ; }
Get audits of the given updater.

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

@return \Illuminate\Database\Eloquent\Builder
Get audits of the given updater .