Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Sweet Alert Laravel Package

realrashid/sweet-alert

Laravel package to integrate SweetAlert2 popups: stylish alerts, confirmations, toasts, and notifications. Trigger from controllers or views with simple helpers and session flashes, customize options, and improve UX with minimal setup.

View on GitHub
Deep Wiki
Context7

Alert Demo

Success Alert
alert()->success('SuccessAlert','Lorem ipsum dolor sit amet.');
Info Alert
alert()->info('InfoAlert','Lorem ipsum dolor sit amet.');
Warning Alert
alert()->warning('WarningAlert','Lorem ipsum dolor sit amet.');
Error Alert
alert()->error('ErrorAlert','Lorem ipsum dolor sit amet.');
Question Alert
alert()->question('QuestionAlert','Lorem ipsum dolor sit amet.');
Image Alert
alert()->image('Image Title!','Image Description','Image URL','Image Width','Image Height','Image Alt');
Html Alert
alert()->html('<i>HTML</i> <u>example</u>',"
  You can use <b>bold text</b>,
  <a href='//github.com'>links</a>
  and other HTML tags
",'success');

Toast Demo

Set the Default Toast Position in config/sweetalert.php file OR use the position() helper method!

Success Toast
toast('Success Toast','success');
Info Toast
toast('Info Toast','info');
Warning Toast
toast('Warning Toast','warning');
Question Toast
toast('Question Toast','question');
Error Toast
toast('Error Toast','error');
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport