PHP code example of coderatio / laranotify

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

    

coderatio / laranotify example snippets


// Laranotify provider
Coderatio\Laranotify\LaranotifyServiceProvider::class,

// Laranotify aliases
'Notify' => Coderatio\Laranotify\Facades\Notify::class,
'Laranotify' => Coderatio\Laranotify\Facades\Laranotify::class,

Notify::success('This is a message'); 
 

Notify::message ('I am a simple notification from laranotify');
// You've just created your first notification.

 Notify::success('I am a simple notification from laranotify')->delay(6000); 
 // 6000 = 6secs.
 

/**
* @param (string) $message
*/
notify();

/**
* @param (string) $message
*/
laranotify();

notify('Hello World'); 
// OR
laranotify('Hello World');

notify()->error('There was an error!'); 
 // OR
notify('There was an error!')->type('danger');
vim 
php artisan vendor:publish --tag=laranotify-
blade
 {{ notify_header(true) }}