Hi, use :
$request->user()
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi Guys,
quick question: Am i doing something wrong? I have a middleware, and in the middleware i just call dd($request->getUser()); in the handle method. When i send then an request with username and password, it is always empty. Any ideas?
Please or to participate in this conversation.