I have the page with the variable. The variable will be the name of the user. I want to create a middleware that get a cookie, connects to the database, gets a user name and fills the variable. I don’t know how the middleware would get access to the variable. Maybe I do this in a wierd way )))
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Passing Variables between Middleware Classes
|
1 | 1095 | October 28, 2016 | |
How-to pass a variable to middleware per route
|
7 | 3536 | July 17, 2019 | |
Access to Route from middleware
|
8 | 4436 | February 28, 2017 | |
How can I get group name?
|
10 | 1647 | March 19, 2020 | |
Creating a global user variable
|
1 | 3262 | January 8, 2018 |