I want to get the id of the session in Laravel 4
In Laravel 3, it was a bit hacky, but possible with this code:
$session_id = Session::$instance->session['id'];
But I can't work it out in Laravel 4... referencing the Session::$instance
object throws errors:
Access to undeclared static property: IlluminateSupportFacadesSession::$instance
have tried:
$session_id = Session::get('id');
but to no avail.. any ideas?
See Question&Answers more detail:os