src/ViewComposers/ViewComposer.php
protected function cacheResults($name, Closure $callback)
    {
        return Cache::remember('cache::' . $name, $this->minutes, $callback);
    }
protected function cacheResults($name, Closure $callback)
    {
        return Cache::remember('cache::' . $name, $this->minutes, $callback);
    }
protected function cacheResults ( $ name , Closure $ callback ) { return Cache :: remember ( 'cache::' . $ name , $ this -> minutes , $ callback ) ; }
Cache the results.

@param  string    $name
@param  \Closure  $callback

@return mixed
Cache the results .