PHPackages                             oanhnn/laravel-flash-message - 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. oanhnn/laravel-flash-message

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

oanhnn/laravel-flash-message
============================

Laravel Flash Message for Laravel 5.4+

v0.1.1(8y ago)16.7kMITPHPPHP &gt;=7.0

Since May 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/oanhnn/laravel-flash-message)[ Packagist](https://packagist.org/packages/oanhnn/laravel-flash-message)[ Docs](https://github.com/oanhnn/laravel-flash-message)[ RSS](/packages/oanhnn-laravel-flash-message/feed)WikiDiscussions master Synced 2d ago

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

Introduction
============

[](#introduction)

[![Build Status](https://camo.githubusercontent.com/e0da86d026a3b10bf4c87517f27e2e8d106b7da5b5e28ac7d7aca51e432daacc/68747470733a2f2f7472617669732d63692e6f72672f6f616e686e6e2f6c61726176656c2d666c6173682d6d6573736167652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/oanhnn/laravel-flash-message)[![Coverage Status](https://camo.githubusercontent.com/6d998e22622c41fceb77f95f22572b180cac1e4ab97f531e1778412c509c6b8a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6f616e686e6e2f6c61726176656c2d666c6173682d6d6573736167652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/oanhnn/laravel-flash-message?branch=master)

Easy Flash Messages for Your Laravel 5.4+ Application

Main features
-------------

[](#main-features)

This composer package offers a Twitter Bootstrap optimized flash messaging setup for your Laravel 5.4+ Applications.

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

[](#requirements)

- php &gt;=7.0
- Laravel 5.4+

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

[](#installation)

Begin by pulling in the package through Composer.

```
$ composer require oanhnn/laravel-flash-message
```

Next, if using Laravel 5.5+, you done. If using Laravel 5.4, include the service provider within your `config/app.php` file.

```
// config/app.php

    'providers' => [
        // Other service providers...

        Laravel\FlashMessage\FlashMessageServiceProvider::class,
    ],

    'aliases' => [
        // Other alias classes

        'Flash' => Laravel\FlashMessage\Facades\Flash::class,
    ],
```

Finally, as noted above, the default CSS classes for your flash message are optimized for Twitter Bootstrap. As such, pull in the Bootstrap's CSS within your HTML or layout file.

```

```

Usage
-----

[](#usage)

Within your controllers, before you perform a redirect, use `Flash` facade.

```
public function save()
{
    Flash::success('Save success!')->important();

    return redirect('/home');
}
```

You may also do:

methoddescription`Flash::success('message')`Set the flash message with theme "success alert".`Flash::warning('message')`Set the flash message with theme "warning alert".`Flash::error('message')`Set the flash message with theme "error alert".`Flash::info('message')`Set the flash message with theme "info alert".`Flash::info('message')->important()`Add a close button to the flash message.`Flash::info('message')->overlay('title')`Display flash message as a modal overlay with a title.And include flash message view into your blade template.

```
@include('flash::message')
```

Changelog
---------

[](#changelog)

See all change logs in [CHANGELOG](CHANGELOG.md)

Testing
-------

[](#testing)

```
$ git clone git@github.com/oanhnn/laravel-flash-message.git /path
$ cd /path
$ composer install
$ composer phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email to [Oanh Nguyen](mailto:oanhnn.bk@gmail.com) instead of using the issue tracker.

Credits
-------

[](#credits)

- [Oanh Nguyen](https://github.com/oanhnn)
- [All Contributors](../../contributors)

License
-------

[](#license)

This project is released under the MIT License.
Copyright © 2017-2018 [Oanh Nguyen](https://oanhnn.github.io/).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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 ~94 days

Total

2

Last Release

3178d ago

### Community

Maintainers

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

---

Top Contributors

[![oanhnn](https://avatars.githubusercontent.com/u/1757120?v=4)](https://github.com/oanhnn "oanhnn (5 commits)")

---

Tags

flash-messageslaravel

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/oanhnn-laravel-flash-message/health.svg)

```
[![Health](https://phpackages.com/badges/oanhnn-laravel-flash-message/health.svg)](https://phpackages.com/packages/oanhnn-laravel-flash-message)
```

###  Alternatives

[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.5M178](/packages/illuminate-broadcasting)[illuminate/redis

The Illuminate Redis package.

8314.0M314](/packages/illuminate-redis)

PHPackages © 2026

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