public function traverse()
    {

        if (self::$ignoreAjax or ! $this->validate()) {
            return;
        }
        $request    = app('antares.request');
        $module     = $request->getModule();
        $controller = $request->getController();
        $action     = $request->getAction();
        $insert     = [
            'type_id'     => $this->getLogTypeByName($module),
            'owner_type'  => $request->getControllerClass(),
            'priority_id' => $this->logPrioriotyId('low'),
            'name'        => strtoupper(implode('_', [$module, $controller, $action])),
            'type'        => 'viewed'
        ];

        return Logs::insert(array_merge($this->prepare(), $insert));
    }
public function traverse()
    {

        if (self::$ignoreAjax or ! $this->validate()) {
            return;
        }
        $request    = app('antares.request');
        $module     = $request->getModule();
        $controller = $request->getController();
        $action     = $request->getAction();
        $insert     = [
            'type_id'     => $this->getLogTypeByName($module),
            'owner_type'  => $request->getControllerClass(),
            'priority_id' => $this->logPrioriotyId('low'),
            'name'        => strtoupper(implode('_', [$module, $controller, $action])),
            'type'        => 'viewed'
        ];

        return Logs::insert(array_merge($this->prepare(), $insert));
    }
public function traverse ( ) { if ( self :: $ ignoreAjax or ! $ this -> validate ( ) ) { return ; } $ request = app ( 'antares.request' ) ; $ module = $ request -> getModule ( ) ; $ controller = $ request -> getController ( ) ; $ action = $ request -> getAction ( ) ; $ insert = [ 'type_id' => $ this -> getLogTypeByName ( $ module ) , 'owner_type' => $ request -> getControllerClass ( ) , 'priority_id' => $ this -> logPrioriotyId ( 'low' ) , 'name' => strtoupper ( implode ( '_' , [ $ module , $ controller , $ action ] ) ) , 'type' => 'viewed' ] ; return Logs :: insert ( array_merge ( $ this -> prepare ( ) , $ insert ) ) ; }
traverse all user actions

@return boolean
traverse all user actions