PHP code example of sarfraznawaz2005 / noty

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

    

sarfraznawaz2005 / noty example snippets


Sarfraznawaz2005\Noty\NotyServiceProvider::class,

@

noty($message, $type = '', array $options = [])

public function store()
{
    noty('Success Message', 'success');

    return redirect()->back();
}

noty('Your Message'); // default (info)
noty('Your Message', 'success');
noty('Your Message', 'error');
noty('Your Message', 'warning');
noty('Your Message', 'alert');

noty('My Notification', null, ['layout' => 'top', 'timeout' => 5000]);
bash
$ php artisan vendor:publish --provider="Sarfraznawaz2005\Noty\NotyServiceProvider"