Laravel: call static function inside blade template
<p>I found very strange situation. I have a collection with some results and I wanna grab for each of that results the saved in cache information. For that I have a Cache class, which has one static function get(). Unfortunately I am not receiving anything when I call it in the foreach loop of my Blade template.</p>

<pre><code>@foreach($prognoses as $sport_prognose)
    &lt;?php
        $pr = Cache::get(Config::get('variables.cache.prediction'), ['id' =&gt; $sport_prognose['id']]);
        print_r($pr);
        die();
    ?&gt;
@endforeach
</code></pre>

<p>If I call the same function inside the Controller is display me the needed information, but not as in the example above.</p>

<p>Why is that ?</p>