laravel php add data to $request code example
Example 1: laravel add values to request
request()->request->add(['index'=>'value']);
Example 2: laravel add request
$request->all() + ['index' => 'value'];
request()->request->add(['index'=>'value']);
$request->all() + ['index' => 'value'];