I had a controller and in it I am storing a session value like this
if(!Session::isStarted())
Session::start();
}
Session::put('total', $total);
In the view I'm trying to retrieve this value:
if(!Session::isStarted()){
Session::start();
}
var_dump(Session::all()); // <-- value 'total' not showing
This is the output of the session
array(2) { ["_token"]=> string(40) "IzsMtiTOfMpoOzLj53YyMYEMAUHr4mLMnIAWcnaJ" ["flash"]=> array(2) { ["old"]=> array(0) { } ["new"]=> array(0) { } } }