Answers for "laravel add new request data"

PHP
1

laravel add values to request

request()->request->add(['index'=>'value']);
Posted by: Guest on March-16-2021
2

laravel add request

$request->all() + ['index' => 'value'];
Posted by: Guest on January-25-2021

Browse Popular Code Answers by Language