PHP code example of codingwithrk / rk-sweet-alert

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

    

codingwithrk / rk-sweet-alert example snippets


session()->flash('rk-alert', [
    'title' => 'Are you sure?',
    'text' => 'You won\'t be able to revert this!',
    'icon' => 'warning',
    'confirmButtonText' => 'Yes, delete it!',
    'showCancelButton' => true,
    'confirmButtonColor' => '#3085d6',
    'cancelButtonColor' => '#d33',
]);
bash
php artisan vendor:publish --provider="Codingwithrk\RkSweetAlert\RkSweetAlertServiceProvider" --tag="config"