get()->toArray(); $refactoringRecordedData = []; foreach($recordedData AS $row => $data) { foreach($data AS $column => $value) { if(!isset($refactoringRecordedData[$column])) { $refactoringRecordedData[$column] = []; } else { if($value!="") { if(!in_array($value, $refactoringRecordedData[$column])) { $refactoringRecordedData[$column][] = $value; } } } } } Cache::put('recordedData_' . $tableName, $refactoringRecordedData, $seconds = $cacheSeconds); return $refactoringRecordedData; } } ?>