Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

postitief's avatar

Session empty

Hello,

I created my own package for laravel. Now I want to store everything in a database that is in the session. But when I access the session in my package controller, it's empty.

dd(Session::all());

returns

[]

How will I be able to access the session in my own package?

Note: I want to access sessions not set by my own package, don't know if that has something to do with it.

0 likes
0 replies

Please or to participate in this conversation.