我正在使用noty库进行笔触通知:enter link description here
它在没有样式的默认主题下工作 我将源CSS和js放在app.blade中:
<link rel="stylesheet" type="text/css" href="{{asset('dashboard_files/plugins/noty/noty.css')}}">
<script src="{{asset('dashboard_files/plugins/noty/noty.min.js')}}"></script>
我在_sessions.blade.php中放置了以下代码:
<script>
@if(session('success'))
new noty({
theme: 'relax',type: 'success',layout:'topRight',text: "{{session('success')}}",timeout:2000,killer: true
}).show();
</script>
@endif