Closed omraniob closed 6 years ago
this is my work :
I installed toastr :npm install toastr --save-dev
File bootsrap.js:
window.toastr = require('toastr');
File app.scss:
@import "~toastr/toastr.scss";
I create notification.blade.php under layouts:
@if(Session::has('success')) toastr.success('{{Session::get('success')}}') @endif
In app.blade.php i call inside script my file :
<script type="text/javascript"> @include('layouts.notification') </script>
In browser i get this error:
Uncaught ReferenceError: toastr is not defined
i think my files not load correct , any help and thank you :)
Hi, I think you may have misunderstood our project, (We are TOAST) We are not related with toastr :D Please check again.
https://www.npmjs.com/package/toastr
this is my work :
I installed toastr :npm install toastr --save-dev
File bootsrap.js:
File app.scss:
I create notification.blade.php under layouts:
In app.blade.php i call inside script my file :
In browser i get this error:
i think my files not load correct , any help and thank you :)