@if ($errors->any()) <div class="alert alert-danger"> <div> @foreach ($errors->all() as $error) <p>{{ $error }}</p> @endforeach </div> </div> @endif @if (Session::has('success')) <div class="alert alert-success"> <div> <p>{{ Session::get('success') }}</p> </div> </div> @endif @if (Session::has('error')) <div class="alert alert-danger"> <div> <p>{{ Session::get('error') }}</p> </div> </div> @endif
info at phpclasses dot org