@if($errors->any()) @foreach($errors->all() as $error) <div class="alert alert-danger fade in"> <i class="fa-fw fa fa-times"></i> {{$error}} </div> @endforeach @endif
以上这段代码加在\resources\views\Admin\Login\index.blade.php
效果如下图:
2024-01-17 18:49:58
@if($errors->any()) @foreach($errors->all() as $error) <div class="alert alert-danger fade in"> <i class="fa-fw fa fa-times"></i> {{$error}} </div> @endforeach @endif
以上这段代码加在\resources\views\Admin\Login\index.blade.php
效果如下图: