获取错误:语法错误,意外'=>' (T_DOUBLE_ARROW) 我的代码是:
@extends('layouts.masters.main')
@section('page-content')
<div class="container">
@include('layouts.partials.nav')
{!! Form::open(['route' => 'post_register', 'id' => 'registration-form']) !!}
{!! Form::label('name', 'Full Name') !!}
{!! Form::text('name', null, ['id' => 'name', 'class' => 'form-control', 'placeholder' => 'Full Name', 'required']) !!}
{!! Form::label('email', 'Email Address') !!}
{!! Form::email('email',null,['id' => 'email', 'class' => 'form-control', 'placeholder' => 'Email Address', 'required']) !!}
{!! Form::label('password', 'password') !!}
{!! Form::password('password',['id' => 'password', 'class' => 'form-control', 'placeholder' => 'password', 'required']) !!}
{!! Form::button('Register','class' => 'btn btn-lg btn-primary btn-block', 'type' => 'submit')!!}
{!! Form::close() !!}
</div> <!-- /container -->
@stop
请帮助......我无法理解我在这段代码中的错误
答案 0 :(得分:1)
使用&#34; =&gt;&#34;内容应该在一个数组(类,类型等)中。
所以,试试这个;
{!! Form::button('Register', ['class' => 'btn btn-lg btn-primary btn-block', 'type' => 'submit']) !!}