Im trying to use toast notifications by toastr in my Laravel web Application, which usage is described here: https://github.com/yoeunes/toastr.
I did everything in the tutorial but i can not display a message.
I typed this => {!! app('toastr')->render() !!} into my Layout file to show the message.
When i instead use {{ app('toastr')->render() }} in my layout file, this is show on my webpage
"closeButton": true,
"closeClass": "toast-close-button",
"closeDuration": 300,
"closeEasing": "swing",
"closeHtml": "<button><i class=\"icon-off\"><\/i> <
\/button>","closeMethod":"fadeOut","closeOnHover":true,"containerId":"toast-container","debug":false,"escapeHtml":false,"extendedTimeOut":10000,"hideDuration":1000,"hideEasing":"linear","hideMethod":
"fadeOut",
"iconClass": "toast-info",
"iconClasses": {
"error": "toast-error",
"info": "toast-info",
"success": "toast-success",
"warning": "toast-warning"
},
"messageClass": "toast-message",
"newestOnTop": false,
"onHidden": null,
"onShown": null,
"positionClass": "toast-top-right",
"preventDuplicates": true,
"progressBar": true,
"progressClass": "toast-progress",
"rtl": false,
"showDuration": 300,
"showEasing": "swing",
"showMethod": "fadeIn",
"tapToDismiss": true,
"target": "body",
"timeOut": 5000,
"titleClass": "toast-title",
"toastClass": "toast"
};
toastr.success('hi', '', []);```
Does anyone have an idea why nothing is shown with this usage=> {!! app('toastr')->render() !!}. Shouldn't that work when with this usage=> {{ app('toastr')->render() }} the javascript is shown?
Is there a problem with composer?