I am writing my first app in Laravel and I want to set some global session variables when the user first accesses the app.
What is the best practice for this? Middleware?
Using Laravel 8
2.1m questions
2.1m answers
60 comments
57.0k users