PHP code example of redot / laravel-toastify

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

    

redot / laravel-toastify example snippets


toastify()->success('Your action was successful!');

toastify()->success('Your action was successful!', [
    'duration' => 5000,
    // ...
]);

'toastifiers' => [
    'custom' => [
        'duration' => 5000,
        'style' => [
            'background' => '#000',
            'color' => '#fff',
        ],
    ],
],

toastify()->custom('/* ... */');
bash
php artisan vendor:publish --tag=toastify-config