Created
May 18, 2018 04:57
-
-
Save tisuchi/b3b8697a16e104e331bac40b11958397 to your computer and use it in GitHub Desktop.
How to add values to Request array in Laravel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function store(Request $request) | |
| { | |
| $valueYouWantToAdd = "Your some data"; | |
| $request->request->add(['arrayKeyName' => $valueYouWantToAdd]); | |
| //now return to check whether working or not | |
| return $request->all(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment