0

I am using noty library for styliss notification: enter link description here

it is working in default theme without styling I put source css and js in 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>

I put following code in _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
shaza
  • 37
  • 11

1 Answers1

1

add this link .. you must add the reference for theme you wish (mint , etc..) with css file and js file if you not use npm to install the plugin :)