PHP code example of dkpankaj1 / toastr

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

    

dkpankaj1 / toastr example snippets


'providers' => [
    Dkpankaj1\Toastr\ToastrServiceProvider::class,
];

use Dkpankaj1\Toastr\Services\ToasterService;

ToasterService::success('success message');
ToasterService::error('error message');
ToasterService::warning('warning message');
ToasterService::info('info message');
sh
php artisan vendor:publish --tag=toastr