PHPackages                             masterro/laravel-flashes - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. masterro/laravel-flashes

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

masterro/laravel-flashes
========================

Easy flash messages

v1.7.0(2mo ago)326.2k↓32.1%1MITPHPPHP ^7.4|^8.0|^8.5CI passing

Since Aug 14Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/MasterRO94/laravel-flashes)[ Packagist](https://packagist.org/packages/masterro/laravel-flashes)[ RSS](/packages/masterro-laravel-flashes/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (19)Used By (0)

 [![](https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg)](https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg)

 [ ![Latest Stable Version](https://camo.githubusercontent.com/c7e9dd4dbb6d528a327d47a992187c419fc29f1fc482a9487e9e1e4e29fc257c/68747470733a2f2f706f7365722e707567782e6f72672f6d6173746572726f2f6c61726176656c2d666c61736865732f762f737461626c65) ](https://packagist.org/packages/masterro/laravel-flashes) [ ![Total Downloads](https://camo.githubusercontent.com/9f7d2f421ab09eec0ccc55738482d598e652a20dd9509bcb0567ae7c70ea720a/68747470733a2f2f706f7365722e707567782e6f72672f6d6173746572726f2f6c61726176656c2d666c61736865732f646f776e6c6f616473) ](https://packagist.org/packages/masterro/laravel-flashes) [ ![Latest Unstable Version](https://camo.githubusercontent.com/46301cc67c99f901726d28754496e1f230f47bc2187dd49c448dc9188f47f720/68747470733a2f2f706f7365722e707567782e6f72672f6d6173746572726f2f6c61726176656c2d666c61736865732f762f756e737461626c65) ](https://packagist.org/packages/masterro/laravel-flashes) [ ![License](https://camo.githubusercontent.com/409a7ab06110b0b5b9ff0492b9548104166a4d44e85fbaa02d5eeb66a05d6a06/68747470733a2f2f706f7365722e707567782e6f72672f6d6173746572726f2f6c61726176656c2d666c61736865732f6c6963656e7365) ](https://github.com/MasterRO94/laravel-flashes/blob/master/LICENSE)

 [ ![StandWithUkraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg) ](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)

Easy Flash Messages for Laravel
===============================

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

Fast flash message integration.

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

[](#installation)

From the command line, run:

```
composer require masterro/laravel-flashes

```

### Usage

[](#usage)

#### Somewhere set the flash message

[](#somewhere-set-the-flash-message)

- `flash("Hello, {$name}!");`
- `flash("Hello, {$name}!", 'success');`
- `flash()->error($message);` `// ->success(), ->info(), ->warning(), ->error()`
- `flash()->with(['body' => 'My custom body text']);` `// ->success(), ->info(), ->warning(), ->error()`
- `Flash::info('Flash!');`

#### Before closing `` tag

[](#before-closing-body-tag)

`@include('flash-messages::script')`

or **implement your own render logic**

`php artisan vendor:publish --tag=flash-messages-views`

#### Implement notify method (bootstrap-notify example)

[](#implement-notify-method-bootstrap-notify-example)

Package will trigger `window.notify(message, type)` global javascript function that you should implement. As an example here is bootstrap-notify implementation:

```
window.notify = (message, type = 'success', options = {}) => {
    if (type === 'error') {
        type = 'danger';
    }

    return window.$.notify(window._.merge({
        message: message
    }, options), {
        type: type,
        animate: {
            enter: 'animated bounceIn',
            exit: 'animated bounceOut'
        },
        z_index: 9999,
        delay: 7000,
        mouse_over: 'pause',
        offset: {
            x: 20,
            y: 30
        }
    });
};
```

It requires `bootstrap`, `bootstrap-notify` and `animate.css`You can install and require those with yarn or npm:

`yarn add bootstrap-notify` or `npm i bootstrap-notify --save`

###  Health Score

59

—

FairBetter than 99% of packages

Maintenance88

Actively maintained with recent releases

Popularity30

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity89

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 90.5% 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 ~196 days

Recently: every ~281 days

Total

17

Last Release

60d ago

Major Versions

v0.1.1 → v1.0.02018-09-26

PHP version history (2 changes)v1.2.0PHP ^7.4|^8.0

v1.7.0PHP ^7.4|^8.0|^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/bcc2e63995db7d04997577b22426f98b9c6b4c569494c91ba552d73c4df427c2?d=identicon)[MasterRO](/maintainers/MasterRO)

---

Top Contributors

[![MasterRO94](https://avatars.githubusercontent.com/u/7365389?v=4)](https://github.com/MasterRO94 "MasterRO94 (38 commits)")[![claude](https://avatars.githubusercontent.com/u/81847?v=4)](https://github.com/claude "claude (2 commits)")[![yvoitenko](https://avatars.githubusercontent.com/u/42643587?v=4)](https://github.com/yvoitenko "yvoitenko (2 commits)")

---

Tags

laravelsessionflashmessagesflash-messages

### Embed Badge

![Health badge](/badges/masterro-laravel-flashes/health.svg)

```
[![Health](https://phpackages.com/badges/masterro-laravel-flashes/health.svg)](https://phpackages.com/packages/masterro-laravel-flashes)
```

###  Alternatives

[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[edvinaskrucas/notification

Package for Laravel for helping to manage flash / instant notifications / messages.

520393.9k10](/packages/edvinaskrucas-notification)[plasticbrain/php-flash-messages

A modern take on PHP session-based flash messages

184229.6k8](/packages/plasticbrain-php-flash-messages)[coderello/laraflash

Advanced flash messages for Laravel.

15737.2k1](/packages/coderello-laraflash)[cartalyst/alerts

Alerts allows you to easily pass alert messages to your Laravel views.

3064.2k](/packages/cartalyst-alerts)[caffeinated/flash

Flash Messages for Laravel

4649.5k2](/packages/caffeinated-flash)

PHPackages © 2026

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