array_key_exists():错误Guzzle

时间:2018-04-27 06:30:51

标签: php laravel oauth-2.0 guzzle

我有一个guzzle方法发布,我收到错误

var o = {}; o.map = function () { this.Join_Date = fnToConvertDateToYourFormate(this.Join_Date); emit(this.CustomerId,this) } o.reduce = function (k, vals) { } mongoose.model('Customers').mapReduce(o, function (err, results) { console.log(results) }); 第一个参数应该是字符串或整数

我的表单是一个简单的帖子方法表单

array_key_exists():

然后我的控制器拿起$ request对象并发送数据

<form action="{{URL::asset('/send/confirmation')}}" method="post">
   <input type="hidden" name="_token" value="{{ csrf_token() }}">
   <input type="hidden" value="{{$order->id}}">
     <div class="form-group">
        <label for="name">Name</label>
        <input type="text" class="form-control" id="name" aria-describedby="nameHelp" placeholder="Enter your name">
           <small id="nameHelp" class="form-text text-muted">By adding your name you are confirming your are authorized to sign this order and any conditions.</small>
     </div>
     <div class="form-group">
        <label for="position">Position</label>
        <input type="text" class="form-control" id="position" aria-describedby="positionHelp" placeholder="Enter your position within the company">
        <small id="positionHelp" class="form-text text-muted">By adding your name you are confirming your are authorized to sign this order and any conditions.</small>
     </div>
     <button type="submit" class="btn btngenius">Submit</button>
</form>

我直接回复那个错误,但不确定我看错了什么

1 个答案:

答案 0 :(得分:0)

进行以下更改:

$id = $request->id;
$name = $request->name;
$position = $request->position;

您尚未在 FORM 中的任何输入字段中设置名称属性:

<input type="hidden" name="id" value="{{$order->id}}">

希望为你工作。