src/Observer/AccountableObserver.php
public function deleting($model)
    {
        if ($model->accountableEnabled() &&
            collect(class_uses($model))->contains(SoftDeletes::class)) {
            $model->{$this->config['column_names']['deleted_by']} = $this->accountableUserId();

            $model->save();
        }
    }
public function deleting($model)
    {
        if ($model->accountableEnabled() &&
            collect(class_uses($model))->contains(SoftDeletes::class)) {
            $model->{$this->config['column_names']['deleted_by']} = $this->accountableUserId();

            $model->save();
        }
    }
public function deleting ( $ model ) { if ( $ model -> accountableEnabled ( ) && collect ( class_uses ( $ model ) ) -> contains ( SoftDeletes :: class ) ) { $ model -> { $ this -> config [ 'column_names' ] [ 'deleted_by' ] } = $ this -> accountableUserId ( ) ; $ model -> save ( ) ; } }
Store the user deleting a record.

@param \Illuminate\Database\Eloquent\Model $model
Store the user deleting a record .