protected function checkColumnsValidity(): void
    {
        $this->getAttribute('columns')->map(function (TableListColumn $column) {
            $this->checkSortableColumnHasAttribute($column);
            $isSearchable = in_array(
                $column->getAttribute('attribute'),
                $this->getAttribute('searchableColumns')->pluck('attribute')->toArray()
            );
            if ($isSearchable) {
                $this->checkSearchableColumnHasAttribute($column);
                $this->checkSearchedAttributeDoesExistInRelatedTable($column);
            }
        });
    }
protected function checkColumnsValidity(): void
    {
        $this->getAttribute('columns')->map(function (TableListColumn $column) {
            $this->checkSortableColumnHasAttribute($column);
            $isSearchable = in_array(
                $column->getAttribute('attribute'),
                $this->getAttribute('searchableColumns')->pluck('attribute')->toArray()
            );
            if ($isSearchable) {
                $this->checkSearchableColumnHasAttribute($column);
                $this->checkSearchedAttributeDoesExistInRelatedTable($column);
            }
        });
    }
protected function checkColumnsValidity ( ) : void { $ this -> getAttribute ( 'columns' ) -> map ( function ( TableListColumn $ column ) { $ this -> checkSortableColumnHasAttribute ( $ column ) ; $ isSearchable = in_array ( $ column -> getAttribute ( 'attribute' ) , $ this -> getAttribute ( 'searchableColumns' ) -> pluck ( 'attribute' ) -> toArray ( ) ) ; if ( $ isSearchable ) { $ this -> checkSearchableColumnHasAttribute ( $ column ) ; $ this -> checkSearchedAttributeDoesExistInRelatedTable ( $ column ) ; } } ) ; }
Check the columns validity.

@return void
Check the columns validity .