PHPackages                             arnaldo-tomo/laravel-auto-alert - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. arnaldo-tomo/laravel-auto-alert

ActiveLibrary

arnaldo-tomo/laravel-auto-alert
===============================

Zero-configuration notification package for Laravel that automatically detects session flash messages, validation errors, HTTP errors, and DELETE form submissions.

v1.0.2(2mo ago)31PHPPHP ^8.1

Since Mar 4Pushed 2mo agoCompare

[ Source](https://github.com/arnaldo-tomo/laravel-auto-alert)[ Packagist](https://packagist.org/packages/arnaldo-tomo/laravel-auto-alert)[ RSS](/packages/arnaldo-tomo-laravel-auto-alert/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (0)

Laravel Auto Alert
==================

[](#laravel-auto-alert)

A powerful, zero-configuration notification package for Laravel. Automatically detect and elegantly display session flashes, validation errors, HTTP errors, and DELETE form confirmation prompts.

Features
--------

[](#features)

- **Zero Configuration:** Install it, and it just works. No traits, no model manipulation, no Blade manipulation.
- **Environment Driven:** Completely customizable from the `.env` file.
- **Auto-Detection:** Detects `$errors`, `session('success')`, `session('error')`, `session('warning')`, `session('info')`, HTTP status &gt;= 400, and general Exceptions.
- **Confirm DELETE Form:** Automatically intercepts `POST` forms with `_method="DELETE"` and stops execution for a stylish confirmation dialog.
- **Beautiful Architecture:** Contains built-in Drivers for `Toast`, `SweetAlert`, `Alert`, and `Modal`.
- **Framework Native:** Respects your CSS framework (Tailwind CSS or Bootstrap 5), eliminating CSS conflicts without requiring compiled builds.

Setup
-----

[](#setup)

Require the package using composer:

```
composer require arnaldo-tomo/laravel-auto-alert
```

Run the interactive installer prompt:

```
php artisan auto-alert:install
```

You will be asked: `Are you using Bootstrap or Tailwind CSS?`. The command will automatically publish the configuration and update `.env` file accordingly.

Configuration (.env)
--------------------

[](#configuration-env)

Customize your alerts globally through `.env`:

```
AUTO_ALERT_DRIVER=toast       # toast, sweetalert, modal, alert
AUTO_ALERT_LAYOUT=tailwind    # tailwind, bootstrap
AUTO_ALERT_POSITION=top-right # top-right, top-left, bottom-right, bottom-left, top-center, bottom-center
AUTO_ALERT_TIMEOUT=4000       # Display duration in ms
AUTO_ALERT_CONFIRM_DELETE=true
```

How It Works
------------

[](#how-it-works)

With Laravel Auto Alert installed, anywhere in your application you can trigger:

```
// Success Toast/SweetAlert
request()->session()->flash('success', 'User saved successfully');

// Warning
return redirect()->back()->with('warning', 'Action is irreversible!');
```

HTTP Exceptions are also caught on the fly:

```
abort(403, 'You do not have permission to view this resource.');
```

### Deleting Records

[](#deleting-records)

Your default Laravel form helper will automatically trigger the SweetAlert/Toast confirmation natively without extra javascript.

```

    @csrf
    @method('DELETE')
    Delete User

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance86

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

69d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/27d582f75823038c48478958013abf5785bd5146f8368616e8a7327dbe86b30d?d=identicon)[arnaldo-tomo](/maintainers/arnaldo-tomo)

---

Top Contributors

[![arnaldo-tomo](https://avatars.githubusercontent.com/u/73796385?v=4)](https://github.com/arnaldo-tomo "arnaldo-tomo (3 commits)")

---

Tags

alertbootstraplaravelnotificationsweetalerttailwindcss

### Embed Badge

![Health badge](/badges/arnaldo-tomo-laravel-auto-alert/health.svg)

```
[![Health](https://phpackages.com/badges/arnaldo-tomo-laravel-auto-alert/health.svg)](https://phpackages.com/packages/arnaldo-tomo-laravel-auto-alert)
```

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/folio

Page based routing for Laravel.

608453.9k27](/packages/laravel-folio)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

71510.9M66](/packages/laravel-mcp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
