2 months ago

Can you programmatically build a request?

Posted 2 months ago by KLM113

I have a method that was initially coded to process a form, it receives form data through an Illuminate\Http\Request parameter.

Now I'm in the need to use the same method from another class, the problem is I get the data from a different source, not from a Request object.

I was wondering if I can programmatically build the object so I can simply pass it to my method, rather than having to do all the refactoring.

Please sign in or create an account to participate in this conversation.