PHP code example of sudam-shrestha / sudam-sweet-alert
1. Go to this page and download the library: Download sudam-shrestha/sudam-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/ */
sudam-shrestha / sudam-sweet-alert example snippets
use Sudam\SudamSweetAlert\Facades\SudamSweetAlert;
SudamSweetAlert::success('Saved!', 'Your changes have been saved.');
SudamSweetAlert::error('Failed', 'Something went wrong.');
SudamSweetAlert::warning('Careful', 'This action cannot be undone.');
SudamSweetAlert::info('Heads up', 'Here is something you should know.');
SudamSweetAlert::question('Are you sure?', 'This will delete the record.');
return redirect()->back();