/** * Get Cache key for the method * * @param $method * @param $args * @return string */ public function getCacheKey($method, $args = null) { $request = app('Illuminate\\Http\\Request'); $args = serialize($args); $key = sprintf('%s@%s-%s', get_called_class(), $method, md5($args . $request->fullUrl())); CacheKeys::putKey(get_called_class(), $key); return $key; }