PHP code example of ghanem / notify

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

    

ghanem / notify example snippets


'providers' => [
	Ghanem\Notify\NotifyServiceProvider::class,
];

'aliases' => [
	'Notify' => Ghanem\Notify\Facades\Notify::class,
];

public function index()
{
    // helper function - default to the 'info'
    notify('Content');

    // return object first
    notify()->info('Content');

    // via the facade
    Notify::info('Content');
    
    return view('home');
}
bash
php artisan vendor:publish --provider="Ghanem\Notify\NotifyServiceProvider" --tag=view
bash
php artisan vendor:publish --provider="Ghanem\Notify\NotifyServiceProvider" --tag=public