Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/289.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 表格isn';t在laravel中使用属性提交_Php_Laravel_Laravel 5_Laravel 5.3 - Fatal编程技术网

Php 表格isn';t在laravel中使用属性提交

Php 表格isn';t在laravel中使用属性提交,php,laravel,laravel-5,laravel-5.3,Php,Laravel,Laravel 5,Laravel 5.3,我正在为每个商店动态创建表单 这是我的密码 <form action="/{{$stores[$i]}}/order/place" method="POST"> {{ csrf_field() }} <table class="table table-responsive table-condensed table-hover"> <tbody> @foreach($products as $product) <?

我正在为每个商店动态创建表单

这是我的密码

<form action="/{{$stores[$i]}}/order/place" method="POST">
  {{ csrf_field() }}
  <table class="table table-responsive table-condensed table-hover">
    <tbody>
      @foreach($products as $product)
      <?php $details = getProductById($product['product']); ?>
        <tr>
          <td class="td_name">
            <div class="row">
              <div class="col-lg-1">
            <a href="/{{$stores[$i]}}/product/{{$details->slug}}"><i aria-hidden="true" class="fa fa-eye"></i></a>
          </div>
          <div class="col-lg-11">
            <input value="{{ $details->product_name }}" type="text" class="form-control" name="name[]" disabled/>
          </div>
        </div>
      </td>
      <td class="td_qty">
        <div class="">
          <input type="number" name="qty[]" value="1" class="form-control" />
        </div>
      </td>
      <td class="td_price">
        <input type="price[]" name="price[]" class="form-control" disabled value="Rs. {{price_check($details->product_discount, $details->product_price, $details->sale_id, $details->discount, $details->sale_status)}} /-" />
      </td>
    </tr>
    @endforeach
</tbody>
<tfooter>
  <input type="submit" formtarget="_blank" class="btn btn-primary" value="Place Order" />
</tfooter>
</table>

我没有任何属性。我在这里遗漏了什么?

因为输入字段中禁用了

在禁用
的情况下使用此选项,它将显示价格

<input type="price[]" name="price[]" class="form-control"value="Rs. {{price_check($details->product_discount, $details->product_price, $details->sale_id, $details->discount, $details->sale_status)}} /-" />

因为在输入字段中禁用了

在禁用
的情况下使用此选项,它将显示价格

<input type="price[]" name="price[]" class="form-control"value="Rs. {{price_check($details->product_discount, $details->product_price, $details->sale_id, $details->discount, $details->sale_status)}} /-" />

您的
名称
表单字段包含
禁用
属性

<input value="Ali Rasheed" type="text" class="form-control" name="name[]" disabled/>

只需删除禁用的
,然后它就可以在
$request
中正常使用


您可能正在查找的是
只读属性。

您的
名称
表单字段包含
禁用的属性

<input value="Ali Rasheed" type="text" class="form-control" name="name[]" disabled/>

只需删除禁用的
,然后它就可以在
$request
中正常使用

您可能正在查找
只读
属性