I have some custom middleware where I do my own authentication on some routes, and I want that middleware to make certain pieces of information available to the controllers, via an interface kind of like how you can do \Auth::user(); to get the user from anywhere.
What I've been doing it is adding it onto the $request object, but I suspect that's not best practice.
Request class's $attributes property is perfect for that purpose.