Add items into a request object

David Carr

1 min read - 15th Aug, 2019

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.

0 comments
Add a comment

Copyright © 2024 DC Blog - All rights reserved.