关于laravel5.4 错误提示的调用
view视图报错的定义:message.blade.php
@if(Session::has('success')) <div><strong>{{Session::get('success')}}</strong></div> @endif @if(Session::has('error')) <div><strong>{{Session::get('error')}}</strong></div> @endif
页面调用
<tr> <th width="120"><i class="require">*</i>登录名:</th> <td> <input type="text" id ="uid" name="User[user_name]" value="{{$lists->user_name}}" disabled> <span >{{$errors->first('User.user_name')}}</span> </td> </tr>