PHP code example of realrashid / sweet-alert
1. Go to this page and download the library: Download realrashid/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/ */
realrashid / sweet-alert example snippets
use RealRashid\SweetAlert\Facades\Alert;
Alert::title('Welcome!')
->success()
->text('Your account has been created.')
->flash();
return redirect()->route('dashboard');
alert('Success!', 'Your data has been saved.', 'success');
return redirect()->back();
bash
php artisan alert:upgrade --dry-run