The storage key for the hidden columns was created with $this->sessionStorageKey() and $this->name but only loaded by using $this->sessionStorageKey(). The same problem appeared with per page.
Old:
public function setSessionStoredHidden()
{
//...
session()->put([$this->sessionStorageKey() . $this->name . '_hidden_columns' => $hidden]);
}
public function initialiseHiddenColumns()
{
//...
if (session()->has($this->sessionStorageKey() . '_hidden_columns')) {
$this->columns = collect($this->columns)->map(function ($column, $index) {
$column['hidden'] = in_array($index, session()->get($this->sessionStorageKey() . '_hidden_columns'));
return $column;
})->toArray();
}
}
The storage key for the hidden columns was created with
$this->sessionStorageKey()
and$this->name
but only loaded by using$this->sessionStorageKey()
. The same problem appeared with per page. Old:Changed:
to
Second change:
to