src/Observers/BaseObserver.php
protected function handleEventsLogging($model)
    {
        if (config($this->package.'.log_events_to_file') === true) {
            $this->logEventsToFile($model);
        }

        if (config($this->package.'.log_events_to_db') === true) {
            $this->logEventsToDB($model);
        }
    }
protected function handleEventsLogging($model)
    {
        if (config($this->package.'.log_events_to_file') === true) {
            $this->logEventsToFile($model);
        }

        if (config($this->package.'.log_events_to_db') === true) {
            $this->logEventsToDB($model);
        }
    }
protected function handleEventsLogging ( $ model ) { if ( config ( $ this -> package . '.log_events_to_file' ) === true ) { $ this -> logEventsToFile ( $ model ) ; } if ( config ( $ this -> package . '.log_events_to_db' ) === true ) { $ this -> logEventsToDB ( $ model ) ; } }
Handle events logging.

@param $model The Eloquent model.

@return void
Handle events logging .