In new laravel I can\'t get session in constructor. Why?
public function __construct() { dd(Session::all()); //this is empty array }
a
In Laravel 5.3 sessions related functionality will not work in the a controller constructor, so you should move all sessions related logic to methods.