Skip to content

Session value returns null when adding middleware #468

Open
@ericvesuna

Description

  • LogViewer Version: 10.1.1
  • Laravel Version: 10.1
  • PHP Version: 8.1

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions