public function remember($attribute, $closure)
    {
        $key = $attribute.'_'.$this->location;

        if (!Cache::has($key)) {
            $result = $closure();
            Cache::forever($key, $result);
        }

        return Cache::get($key);
    }
public function remember($attribute, $closure)
    {
        $key = $attribute.'_'.$this->location;

        if (!Cache::has($key)) {
            $result = $closure();
            Cache::forever($key, $result);
        }

        return Cache::get($key);
    }
public function remember ( $ attribute , $ closure ) { $ key = $ attribute . '_' . $ this -> location ; if ( ! Cache :: has ( $ key ) ) { $ result = $ closure ( ) ; Cache :: forever ( $ key , $ result ) ; } return Cache :: get ( $ key ) ; }
Simple caching tool

@param  string $attribute
@param  Clousre $closure

@return mixed
Simple caching tool