src/Column.php
public function getDirection()
    {
        if ($this->isSorted()) {
            // If the column is currently being sorted, grab the direction from the query string
            $this->direction = Request::input(config('gbrock-tables.key_direction'));
        }

        if (!$this->direction) {
            $this->direction = config('gbrock-tables.default_direction');
        }

        return $this->direction;
    }
public function getDirection()
    {
        if ($this->isSorted()) {
            // If the column is currently being sorted, grab the direction from the query string
            $this->direction = Request::input(config('gbrock-tables.key_direction'));
        }

        if (!$this->direction) {
            $this->direction = config('gbrock-tables.default_direction');
        }

        return $this->direction;
    }
public function getDirection ( ) { if ( $ this -> isSorted ( ) ) { // If the column is currently being sorted, grab the direction from the query string $ this -> direction = Request :: input ( config ( 'gbrock-tables.key_direction' ) ) ; } if ( ! $ this -> direction ) { $ this -> direction = config ( 'gbrock-tables.default_direction' ) ; } return $ this -> direction ; }
Returns the default sorting
@return string
Returns the default sorting