Laravel 5.1 - Show my session cart
<p>to show in header menu my products of my cart session, I'm passing the session "cart" from my controller to my view, like this: </p>

<p>FrontController: </p>

<pre><code>public function index()
    {
        $cart = \Session::get('cart');

        return view('index',compact('cart'));
    }
</code></pre>

<p>Routes.php</p>

<pre><code>Route::get('/','FrontController@index');
</code></pre>

<p>my layout principal.blade.php ( it work well)</p>

<pre><code>@foreach ($cart as $item)

all items of my session cart

@endforeach
</code></pre>

<p>MY QUESTION: </p>

<p>there is a way to pass the cart session directly to all my views?? OR I must always pass the cart Session for each view ? i have about 24 views, i must do each view like my view homepage index.php ??</p>

<p>Thank you for your help! </p>