Add items into a request object
To add additional items into the request use ->merge and pass in an array of attributes.
request()->merge($array);
The request object will now contain the new array items as part of its body.
Laravel Framework | PHP & MySQL | Tutorials
To add additional items into the request use ->merge and pass in an array of attributes.
request()->merge($array);
The request object will now contain the new array items as part of its body.