Level 21
Do this
{!! url('/?id=' . Auth::user()->id ) !!}
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
How can I use the helper url() function to set an ID onto the "main" url of the application? I tried:
{!! url('', ['id' => Auth::user()->id]) !!}
{!! url('/', ['id' => Auth::user()->id]) !!}
Both doesn't work the way I need it to work, I get:
http://domain.com/13
I would need to get something like this:
http://domain.com/?id=13
Please or to participate in this conversation.