PHP code example of roksta / toast

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

    

roksta / toast example snippets


    toast()->success('message', 'title');
    toast()->info('message', 'title');
    toast()->warning('message', 'title');
    toast()->error('message', 'title');

    toast()->success('message', 'title')->options([
        'timeOut' => 5000,
        'closeButton' => 1,
        'closeHtml' => '<button><i class="icon-off"></i></button>'
    ]);
bash
php artisan vendor:publish --provider="Roksta\Toastr\ToastrServiceProvider"