src/Observer/AccountableObserver.php
public function creating($model)
    {
        if ($model->accountableEnabled()) {
            $model->{$this->config['column_names']['created_by']} = $this->accountableUserId();
            $model->{$this->config['column_names']['updated_by']} = $this->accountableUserId();
        }
    }
public function creating($model)
    {
        if ($model->accountableEnabled()) {
            $model->{$this->config['column_names']['created_by']} = $this->accountableUserId();
            $model->{$this->config['column_names']['updated_by']} = $this->accountableUserId();
        }
    }
public function creating ( $ model ) { if ( $ model -> accountableEnabled ( ) ) { $ model -> { $ this -> config [ 'column_names' ] [ 'created_by' ] } = $ this -> accountableUserId ( ) ; $ model -> { $ this -> config [ 'column_names' ] [ 'updated_by' ] } = $ this -> accountableUserId ( ) ; } }
Store the user creating a record.

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