<?php
namespace App\Komma\Cache;
class CacheService
{
/**
* @param $item
* @param $cache
* @return mixed|string
*/
public function fillSelectBox($item, $cache)
{
if (\Request::filled($item)) return \Request::get($item);
if(!empty($cache->$item)) return $cache->$item;
if(!empty(old($item))) return old($item);
}
}