I'm trying to fetch data from sessions when I run a command in my console, but session always returns an empty array!
php artisan command:mycommand
Below is how I'm trying to get the session:
//returns empty array
$session = session()->all();
Any ideas?