protected function shouldLogCall($text, $userId)
    {
        $beforeHandler = $this->config->get('activitylog.beforeHandler');

        if (is_null($beforeHandler) || $beforeHandler == '') {
            return true;
        }

        return app($beforeHandler)->shouldLog($text, $userId);
    }
protected function shouldLogCall($text, $userId)
    {
        $beforeHandler = $this->config->get('activitylog.beforeHandler');

        if (is_null($beforeHandler) || $beforeHandler == '') {
            return true;
        }

        return app($beforeHandler)->shouldLog($text, $userId);
    }
protected function shouldLogCall ( $ text , $ userId ) { $ beforeHandler = $ this -> config -> get ( 'activitylog.beforeHandler' ) ; if ( is_null ( $ beforeHandler ) || $ beforeHandler == '' ) { return true ; } return app ( $ beforeHandler ) -> shouldLog ( $ text , $ userId ) ; }
Determine if this call should be logged.

@param $text
@param $userId

@return bool
Determine if this call should be logged .