Noty installation with Laravel + Vue.js App

npm install noty --save

 

@resources/assets/js/bootstrap.js

window.noty = require('noty');

 

@app.blade.php

<script>

@if(Session::has('success'))

  new noty({
    type: 'success',
    layout: 'bottomLeft',
    text: '{{ Session::get('success') }}'
  });
@endif
</script>

-------------------------------------------------------------------------------------kati#8

 

noty/lib/noty.css を別個読み込ませる

参考:

laracasts.com