Skip to content

Instantly share code, notes, and snippets.

@nasirkhan
Created October 30, 2016 05:57
Show Gist options
  • Select an option

  • Save nasirkhan/11835017b3bad4563f9ecdaf3ea27306 to your computer and use it in GitHub Desktop.

Select an option

Save nasirkhan/11835017b3bad4563f9ecdaf3ea27306 to your computer and use it in GitHub Desktop.
Add element to Laravel Request object
<?php
/*
* Add element to Laravel Request object,
*/
$request->merge(array('new_value' => 'New Value Text'));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment