📌  相关文章
📜  如何在 laravel 中为请求对象添加属性 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:45.555000             🧑  作者: Mango

代码示例1
//this is my code

this how to add single attribute to the request object in laravel:-
  
$request->request->add(['car' => 'value']); 

this is how to add multiple attributes to the request object in laravel:-
$request->request->add(['car' => 'value',  'end' => 'done']);