1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-09 11:42:28 +01:00

Fix Toastr error display

This commit is contained in:
Florian Keller 2017-02-23 15:44:49 +01:00
parent c53e39ce71
commit 8bcec11817
No known key found for this signature in database
GPG Key ID: 5570D938BDA00C34

View File

@ -60,22 +60,22 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<script>
@if (Session::has('info'))
toastr["info"](`{{session('info')}}`, "Info")
toastr["info"]("{{session('info')}}", "Info")
@endif
@if (Session::has('error'))
toastr["error"](`{{session('error')}}`, "Error")
toastr["error"]("{{session('error')}}", "Error")
@endif
@if (Session::has('warning'))
toastr["warning"](`{{session('warning')}}`, "Warning")
toastr["warning"]("{{session('warning')}}", "Warning")
@endif
@if (Session::has('success'))
toastr["success"](`{{session('success')}}`, "Success")
toastr["success"]("{{session('success')}}", "Success")
@endif
@if (count($errors) > 0)
// Handle Lumen validation errors
@foreach ($errors->all() as $error)
toastr["error"](`{{$error}}`, "Error")
toastr["error"]("{{$error}}", "Error")
@endforeach
@endif
</script>