Create a Laravel Request object on the fly
问题 I'm handling data in one controller and want to pass it further into another controller to avoid duplicate code. Is there a way to set up a Request object that is needed in the other controller's store -method? I've traced down the Request inheritance and came to Symfony's Request object which has a request property that is in fact a ParameterBag that holds a method add to add parameters with values to it. I've tried the following but I'm getting null as result: $myRequest = new Request();