Level 33
Yes. Why would you do that?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
This is probably not the cleverest question but :
Inside a class, is there any benefit to store request() in a variable (as $this->request = request()) or using it as it is good enough ?
No benefit at all, and not forgetting that in controllers you can just accept the $request anyway.
Please or to participate in this conversation.