ARCANEDEV / LogViewer

:page_with_curl: Provides a log viewer for Laravel
MIT License
2.37k stars 335 forks source link

Session value returns null when adding middleware #468

Open ericvesuna opened 3 months ago

ericvesuna commented 3 months ago

Description:

Session value always returns null while calling middleware for viewing logs. But while using the same middleware with some other routes the session value work. Tried with getting session value in middleware before calling curl request function as well as added get session value directly in curl request

Steps To Reproduce:

1) Add get session and assign it to variable, value of that variable will be null. 2) call any function from any file the session value will return null.

Update on above issue:

Added web in middleware before calling custom routes and it worked. Did backtrace and found the session was not started