laravel/framework — pull request #3934 by tkjaergaard (2014-03-20 08:33:28+00:00)
Title: Add posibility to provide an array of paramaters to the colsure in Cache::remember

Occasionally you might have some paramaters that you want to accept through the closure in Cache::remember();

$task = Cache::remember('task', 120, function($var)
{
return $var;
}, ['foo']);

This enhancement creates the ability to easily provide an array of arguments that you wanna send to the closure in order to get the correct data, or whatever you might wanna do.

Cache::remember($key, $minutes, Closure $closure, array $arguments = array());