$value = "foo"; // dynamic string value
if(Cache::has('key')){
$newValue = Cache::get('key');
$newValue[] = $value;
Cache::put('key', $newValue);
}else{
Cache::put('key', Arr::wrap($value));
}
$cache = Cache::driver('array');
$cache->put(...)