doujie7497 2016-07-05 04:32
浏览 44

在laravel 5.2中,我需要创建一个表单,我得到错误,如FormBuilder.php第1208行中的ErrorException:方法标签不存在

ErrorException in FormBuilder.php line 1208: Method lable does not exist.

i am using laravel 5.2 there it shows this error , i have searched many sites , but i have not what i needed . can any one help me

below is my code

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Update</title>
</head>
<body>
 // {!! Form::open([ 'routes' => 'testing.update' ]) !!}
 // {{ Form::model($user,['method'=>'patch','action'=>['testing@update',$user->id]])}}

// <div class="form-group">
     // {!! Form::label('name', 'Name:', ['class' => 'control-label']) !!}
     // {!! Form::text('name', null, ['class' => 'form-control']) !!}
// </div>

// <div class="form-group">
     // {!! Form::label('email', 'Email:', ['class' => 'control-label']) !!}
    // {!! Form::text('email', null, ['class' => 'form-control']) !!}
 // </div>
// <div class="form-group">
    // {!! Form::label('mobile', 'Mobile:', ['class' => 'control-label']) !!}
    // {!! Form::text('mobile', null, ['class' => 'form-control']) !!}
 // </div>
 // {!! Form::submit('Update', ['class' => 'btn btn-primary']) !!}

 // {!! Form::close() !!}

     {{ Form::open([ 'routes' => 'testing.update' ]) }}

 {{ Form::model($user,['method'=>'patch','action'=>['testing@update',$user->id]])}}


 {{ Form::lable('name','Name')}}

{{ Form::text('name')}}
  {{ Form::lable('email','email')}}

  {{ Form::text('email')}}
 {{ Form::lable('mobile','mobile')}}

 {{ Form::text('mobile')}}
  <br/>
     {{ Form::submit("update")}}u    {{ Form::close()}}

</body>
</html>

here i used both 4.5 and 5.2 version format

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 对于相关问题的求解与代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
    • ¥15 保护模式-系统加载-段寄存器
    • ¥15 电脑桌面设定一个区域禁止鼠标操作
    • ¥15 求NPF226060磁芯的详细资料
    • ¥15 使用R语言marginaleffects包进行边际效应图绘制