Description
A beautiful replacement for JavaScript's popup boxes for Laravel
Import Alert Facade first!
use RealRashid\SweetAlert\Facades\Alert;
or
Use Alert;
in your controller method
Alert::alert('Title', 'Message', 'Type');
Alert::success('Success Title', 'Success Message');
Alert::info('Info Title', 'Info Message');
Alert::warning('Warning Title', 'Warning Message');
Alert::error('Error Title', 'Error Message');
Alert::question('Question Title', 'Question Message');
Alert::image('Image Title!','Image Description','Image URL','Image Width','Image Height', 'Image Alt');
Alert::html('Html Title', 'Html Code', 'Type');
Alert::toast('Toast Message', 'Toast Type');
Recent Courses on Laravel Daily
[NEW] Laravel Boost: Deeper Practical Dive
8 lessons
32 min
Mobile Apps: React Native vs Flutter vs NativePHP?
8 lessons
55 min
Testing in Laravel 13 For Beginners
26 lessons
1 h 41 min read