我遇到的问题是标签不允许在其中放置任何文本。它现在显示的错误是text not allowed in element <ul> in this context
。如果没有它,我打算如何将这些物品放入无序列表中?我的代码如下:
@extends('layouts.default')
@section('content')
<h1>Register </h1>
@if($errors->has())
<p>The following errors have occurred:</p>
***<ul id="form-errors">
{{ $errors->first('username', '<li>:message</li>') }}
{{ $errors->first('password', '<li>:message</li>') }}
{{ $errors->first('password_confirmation', '<li>:message</li>') }}
{{ $errors->first('email', '<li>:message</li>') }}
</ul>***
@endif
{{ Form:open('register', 'POST') }}
<p>
{{ Form::label('username', 'Username') }}<br />
{{ Form::text('username', Input::old('username') }}
</p>
<p>
{{ Form::label('password', 'Password') }}<br />
{{ Form::password('password' }}
</p>
<p>
{{ Form::label('password', 'Confirm Password') }}<br />
{{ Form::password('password_confirmation' }}
</p>
<p>
{{ Form::label('email', 'Email Address') }}<br />
{{ Form::text('email') }}
</p>
<p>{{ Form::submit('Register') }}</p>
{{ Form::close()}}
@stop