Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

sweet-alert-development

Skill by realrashid

Builds SweetAlert2 flows in Laravel with the realrashid/sweet-alert v8 package. Covers flashed alerts, toasts, input dialogs and confirmation dialogs for destructive actions. Written for Laravel developers who already use that package.

  • Score 76
  • 1.2k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install sweet-alert-development

Built from the published package, never by AI.

git clone --depth 1 https://github.com/realrashid/sweet-alert /tmp/sweet-alert && mkdir -p ~/.claude/skills && cp -r /tmp/sweet-alert/resources/boost/skills/sweet-alert-development ~/.claude/skills/sweet-alert-development

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install sweet-alert-development in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill helps an AI assistant build SweetAlert2 flows in Laravel using the realrashid/sweet-alert v8 package. It covers flashed alerts and toasts, input dialogs that post their value back to a route, and confirmation dialogs for destructive or irreversible actions. It also explains how to render Blade views inside an alert and how to dispatch alerts from Livewire components.

Alerts are built in PHP with the Alert facade, flashed to the session, and rendered by the @sweetAlert directive on the next response. Confirmations can be added with a data-confirm attribute on links or forms, without controller changes or JavaScript. The skill also lists v8 pitfalls and shows how to migrate v7 call sites with a dry-run upgrade command. It is aimed at Laravel developers who already use or plan to use realrashid/sweet-alert.

Written from the project's SKILL.md and checked against it.

What it can do

  • Flashed alerts and toastsBuilds session-flashed alerts with Alert::success() and toasts with Alert::toast().
  • Input dialogsCollects a value in a dialog and posts it to a route with submitTo().
  • Confirmation dialogsAdds a data-confirm attribute to links or forms to ask before an action.
  • Blade views in alertsRenders a Blade view inside an alert using the view() method.
  • Livewire alertsDispatches alerts from Livewire components with the SweetAlertTrait.
  • v8 migrationRuns the alert:upgrade command to move v7 call sites to v8.

What you need

  • Laravel project
  • realrashid/sweet-alert v8 package

Try asking

  • Add a success alert after the profile update saves
  • Ask for confirmation before deleting this post with SweetAlert
  • Show a SweetAlert input dialog that saves the user's name

Good to know

  • Covers v8 only. v7 code needs migration because some calls fail quietly.
  • Session-flashed alerts do not fire on a Livewire update, so a browser event is used instead.
  • Without submitTo() the input dialog closes and the value is discarded.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: resources/boost/skills/sweet-alert-development/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB

Alternatives to sweet-alert-development

All alternatives →

Compare with react-component-performance, react-component-performance or lecture-style

sweet-alert-development: common questions

Does this work with Livewire?

Session-flashed alerts do not fire on a Livewire update. The skill uses the SweetAlertTrait and dispatchAlert() to show alerts from Livewire components instead.

How do I confirm before a destructive action?

Add the data-confirm attribute to the link or form. Per-element text can be set with attributes such as data-confirm-title, and defaults live in config/sweetalert.php.

Can the user type a value into a dialog?

Yes. Alert::input() with submitTo() posts the entered value to a route. Server-side validation while the dialog is open can use preConfirmRoute().

How do I install sweet-alert-development?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is sweet-alert-development free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is sweet-alert-development safe to use?

It scores 76 of 100. Grades: maintenance B, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to sweet-alert-development?

Similar skills: react-component-performance, react-component-performance, lecture-style, workshop-style.

sweet-alert-development Install

Add to stack

Loading.