Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

HRAB's avatar
Level 9

how to simulate user request like domain.com/urlhere

Hi guys I just wanted to ask your opinion or ideas on how to do this

i have a url like:

domain.com/urlhere

handled by:

SomeController@someFunction(Request $request)

the $request object contains a lot

I want to create the same with exact object $request using:

Request::create('/urlhere');

I want to run a script that will visit my pages in the background

0 likes
1 reply
lyleyboy's avatar

It might help if you explain what you're trying to achieve to be honest. It seems a bit confusing to me. But that could just me be...

Please or to participate in this conversation.