PHP code example of mascame / notify

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

    

mascame / notify example snippets


// the Service Provider
'Mascame\Notify\NotifyServiceProvider'

// the alias
'Notify' => '\Mascame\Notify\Notify'

Notify::all();

// blade
{{ Notify::all(); }}

// $autohide = false, $icon = null, $dismissable = false

Notify::success('Successfuly notified!');
Notify::danger('Real danger!');
Notify::info('Informed!');
Notify::warning('Warning!');
Notify::loading('Loading...');

Notify::add($value, $type = 'success', $autohide = false, $icon = null, $dismissable = false);

// this will autohide and get the default values for icon and dismissable

public function logout()
{
    Auth::logout();
    Notify::success('Successfuly logged out!', true);
    
    return Redirect::to('home');
}
sh
php artisan config:publish mascame/notify