ARCANEDEV / LogViewer

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

Session value returns null when adding middleware #468

Open ericvesuna opened 1 month ago

ericvesuna commented 1 month 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