Add items into a request object

David Carr

Laravel Framework Tutorials PHP & MySQL

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.

Fathom Analytics $10 discount on your first invoice using this link

Help support the blog so that I can continue creating new content!

Sponsor

Fathom Analytics $10 discount on your first invoice using this link

Subscribe to my newsletter

Subscribe and get my books and product announcements.

© 2006 - 2024 DC Blog. All code MIT license. All rights reserved.