Samsung / cordova-plugin-toast

Cordova plugin that provides TV Specific functionalities.
Apache License 2.0
122 stars 60 forks source link

Laravel-mix with toastr notification (laravel 5.6) #86

Closed omraniob closed 6 years ago

omraniob commented 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 :)

prozanne commented 6 years ago

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