PHPackages                             darkghosthunter/laralerts - 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. darkghosthunter/laralerts

Abandoned → [laragear/alerts](/?search=laragear%2Falerts)ArchivedLibrary

darkghosthunter/laralerts
=========================

Quickly create one or multiple Alerts from your backend

v6.3.1(4y ago)456805MITPHPPHP ^8.0||^8.1

Since May 31Pushed 4y agoCompare

[ Source](https://github.com/DarkGhostHunter/Laralerts)[ Packagist](https://packagist.org/packages/darkghosthunter/laralerts)[ Docs](https://github.com/darkghosthunter/laralerts)[ Fund](https://paypal.me/darkghosthunter)[ Fund](https://ko-fi.com/DarkGhostHunter)[ RSS](/packages/darkghosthunter-laralerts/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (10)Versions (20)Used By (0)

Package superseeded by [Laragear/Alerts](https://github.com/Laragear/Alerts)
============================================================================

[](#package-superseeded-by-laragearalerts)

---

Laralerts
=========

[](#laralerts)

Quickly set one or multiple Alerts in your backend, and render them in the frontend.

Laralerts is compatible with **any** frontend framework to better suit your app, not the other way around.

Requirements
------------

[](#requirements)

- Laravel 8.x or later
- PHP 8.0 or later.

> For older versions support, consider helping by sponsoring or donating.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require darkghosthunter/laralerts
```

If you don't have anything to start with in your frontend, you can use [Laravel Jetstream](https://jetstream.laravel.com/), or go the classic way and use [Bootstrap](https://getbootstrap.com), [Bulma.io](https://bulma.io/), [UI kit](https://getuikit.com/), [TailwindCSS](https://tailwindcss.com/) and [INK](http://ink.sapo.pt/), among many others.

Usage
-----

[](#usage)

Laralerts allows you to set a list of Alerts in your application and render them in the frontend in just a few minutes.

The default Alert renderer uses Bootstrap code to transform each alert into [Bootstrap Alerts](https://getbootstrap.com/docs/5.0/components/alerts/). If you're not using Bootstrap, you can [create your own](#creating-a-custom-renderer) for your particular framework.

### Quickstart

[](#quickstart)

To set an Alert in your frontend, you can use the `alert()` helper, or the `Alert` Facade. A good place to use them is before sending a response to the browser, like in your HTTP Controllers.

If you're sending a redirect, Laralerts will automatically flash the alert so the next request can show it.

```
