12345678910111213 |
- @if(Session::has('toastr'))
- @php
- $toastr = Session::get('toastr');
- $type = array_get($toastr->get('type'), 0, 'success');
- $message = array_get($toastr->get('message'), 0, '');
- $options = json_encode($toastr->get('options', []));
- @endphp
- <script>
- $(function () {
- toastr.{{$type}}('{!! $message !!}', null, {!! $options !!});
- });
- </script>
- @endif
|