PHP code example of coderjp / notify

1. Go to this page and download the library: Download coderjp/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/ */

    

coderjp / notify example snippets


Notify::success('The user was added!');
Notify::error('There was a problem adding the user, Please try again');
Notify::info('The user\'s password was changed');

Notify::successNow('The user was added!');
Notify::errorNow('There was a problem adding the user, Please try again');
Notify::infoNow('The user\'s password was changed');

if (Notify::has('success')
    <div class="alert alert-success">
        <ul>
        @foreach(Notify::get('success') as $message)
            <li>{{ $message }}</li>
        @endforeach
        </ul>
    </div>
@endif

if (Notify::all())
    <div class="alert">
        <ul>
        @foreach(Notify::all() as $message)
            <li>{{ $message }}</li>
        @endforeach
        </ul>
    </div>
@endif