Search code examples
phplaravelsessionlumenlaravel-socialite

Session store not set on request. Lumen


I am currently working on a project with Lumen. I want to use Socialite to allow the user to authenticate through Twitter but I have had this error since "Session store not set on request"


Solution

  • Since HTTP driven applications are stateless, by default lumen doesn't enable session functionality. In order to enable it, you must uncomment all of the middleware within the $app->middleware() method call in your bootstrap/app.php file.