protected function setDbColumns()
    {
        $connection = $this->model()->eloquent()->getConnectionName();

        $this->dbColumns = collect(Schema::connection($connection)->getColumnListing($this->model()->getTable()));
    }
protected function setDbColumns()
    {
        $connection = $this->model()->eloquent()->getConnectionName();

        $this->dbColumns = collect(Schema::connection($connection)->getColumnListing($this->model()->getTable()));
    }
protected function setDbColumns ( ) { $ connection = $ this -> model ( ) -> eloquent ( ) -> getConnectionName ( ) ; $ this -> dbColumns = collect ( Schema :: connection ( $ connection ) -> getColumnListing ( $ this -> model ( ) -> getTable ( ) ) ) ; }
Get the table columns for grid.
Get the table columns for grid .