PHPackages                             attla/flash-messages - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. attla/flash-messages

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

attla/flash-messages
====================

Intuitive package to flash notifications on laravel.

018PHP

Since Sep 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/attla/flash-messages)[ Packagist](https://packagist.org/packages/attla/flash-messages)[ RSS](/packages/attla-flash-messages/feed)WikiDiscussions main Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Dynamic flash messages for laravel
==================================

[](#dynamic-flash-messages-for-laravel)

[![License](https://camo.githubusercontent.com/891419a00e04aa0e311068fa8a04eec92cab4f7026c76278279bf2a1da50e578/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d6c69676874677265792e737667)](LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/7302765620f4d329749314e58e5d32e1d93e65b294aea6cea7acb963862d69c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6174746c612f666c6173682d6d65737361676573)](https://packagist.org/packages/attla/flash-messages)[![Total Downloads](https://camo.githubusercontent.com/9436b781b4bcb0e0d81d7232aad7eadc88d936b983928cdf2d71f09bb738104a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6174746c612f666c6173682d6d65737361676573)](https://packagist.org/packages/attla/flash-messages)

✨ Intuitive package to flash notifications on laravel.

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

[](#installation)

```
composer require attla/flash-messages
```

Configuration
-------------

[](#configuration)

To publish the configuration file, run the following command:

```
php artisan vendor:publish --tag=attla/flash-messages/config
```

The `types` array on configuration is usaded to indicate the class to the message.

The `icons` are default icons for each message type.

Usage
-----

[](#usage)

For create a new message you call the facade method as the type name from the configuration

```
use Attla\Flash\Facade as Flash;

// Create a flash message with the helper function
$flash = flash('Example of message', 'info');
// Create with facade
$flash = Flash::info('Example of message');

// Set the message as dismissible
$flash->dismissible();

// Set a custom class for the message
$flash->class('custom-message-class');

// Set a icon for the message
$flash->icon('far fa-circle-info');
$flash->icon('');

// Set a timeout for the message
$flash->timeout(6); // will be removed after 6 seconds

// If needed, you can unqueue the message
$flash->destory();
```

### List of message methods

[](#list-of-message-methods)

MethodParametersDescription`dismissible()`-Make the message disposable`timeout(seconds)`IntegerThe message will be removed after the time`class(class)`StringSet a custom class for the message`destory()`-Unqueue the message`delete()`-Alias for `destory()``forget()`-Alias for `destory()``unset()`-Alias for `destory()``unqueue()`-Alias for `destory()`License
-------

[](#license)

This package is licensed under the [MIT license](LICENSE) © [Octha](https://octha.com).

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/682727?v=4)[Andre Goncalves](/maintainers/nicolau)[@nicolau](https://github.com/nicolau)

---

Top Contributors

[![nicxlau](https://avatars.githubusercontent.com/u/17990891?v=4)](https://github.com/nicxlau "nicxlau (21 commits)")

### Embed Badge

![Health badge](/badges/attla-flash-messages/health.svg)

```
[![Health](https://phpackages.com/badges/attla-flash-messages/health.svg)](https://phpackages.com/packages/attla-flash-messages)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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