src/BoomCMS/Observers/CreationLogObserver.php
public function creating(Model $model)
    {
        $model->created_at = time();
        $model->created_by = $this->guard->check() ? $this->guard->user()->getId() : null;
    }
public function creating(Model $model)
    {
        $model->created_at = time();
        $model->created_by = $this->guard->check() ? $this->guard->user()->getId() : null;
    }
public function creating ( Model $ model ) { $ model -> created_at = time ( ) ; $ model -> created_by = $ this -> guard -> check ( ) ? $ this -> guard -> user ( ) -> getId ( ) : null ; }
Set created_at and created_by on the model prior to creation.

@param Model $model

@return void
Set created_at and created_by on the model prior to creation .