I was wondering why we cannot get the session data when testing with Laravel Dusk ?
In any controller in Laravel we can get session data with Session::get('data');
When we are running a Laravel Dusk test, we take a screenshot with the phpdebugbarr opened (very usefull). We can see on the screenshot that the session is correctly filled with our data, but if we call Session::all();
juste after browser->screenshot()
then it return an empty array !
Is it even possible to get the session with Dusk ? I don't find any mention of session managing with Dusk on Google.