PHP code example of minhajul / notify

1. Go to this page and download the library: Download minhajul/notify library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

minhajul / notify example snippets


Minhajul\Notify\NotifyServiceProvider::class,

'Notify' => Minhajul\Notify\Facades\Notify::class,

notify()->flash('Welcome back!', 'success');

@if (notify()->ready())
    <div class="alert-box {{ notify()->type() }}">
        {{ notify()->message() }}
    </div>
@endif
javascript
@if (notify()->ready())
    <script>
        swal({
            title: "{!! notify()->message() !!}",
            text: "{!! notify()->option('text') !!}",
            type: "{{ notify()->type() }}"
        });
    </script>
@endif