PHPackages                             caffeinated/flash - 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. caffeinated/flash

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

caffeinated/flash
=================

Flash Messages for Laravel

v4.1.0(5y ago)4649.5k14[1 PRs](https://github.com/caffeinated/flash/pulls)2MITPHPPHP ^7.2|^8.0

Since Jun 12Pushed 3y ago3 watchersCompare

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

READMEChangelog (9)Dependencies (2)Versions (10)Used By (2)

Caffeinated Flash Messages
==========================

[](#caffeinated-flash-messages)

[![Source](https://camo.githubusercontent.com/0d9072e20677b5c28198efb7ba1828e4d7ff19858040fb4a6acffba8f680bc21/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6361666665696e617465642f666c6173682d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/caffeinated/flash)[![License](https://camo.githubusercontent.com/30597ff9a350144f03bffdd9183e16468e0b3ca1193e1d08591d992622738d55/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://tldrlegal.com/license/mit-license)

Laravel 5 flash messages, based off the Laracasts video tutorial on the same topic: [Flexible Flash Messages](https://laracasts.com/lessons/flexible-flash-messages). Originally developed for [FusionCMS](https://github.com/fusioncms/fusioncms), an open source content management system.

Quick Installation
------------------

[](#quick-installation)

Begin by installing the package through Composer.

```
composer require caffeinated/flash

```

Once this operation is complete, simply add both the service provider and facade classes to your project's `config/app.php` file:

#### Service Provider

[](#service-provider)

```
Caffeinated\Flash\FlashServiceProvider::class,
```

#### Facade

[](#facade)

```
'Flash' => Caffeinated\Flash\Facades\Flash::class,
```

And that's it! With your coffee in reach, start flashing out messages!

Usage
-----

[](#usage)

Usage is simple. Before redirecting to another page, simply call on `Flash` to set your desired flash message. There are a number of methods to assign different levels of priority (info, success, warning, and error).

#### Success

[](#success)

```
Flash::success('This is a success message.');
```

#### Info

[](#info)

```
Flash::info('This is an info message.');
```

#### Warning

[](#warning)

```
Flash::warning('This is a warning message.');
```

#### Error

[](#error)

```
Flash::error('This is an error message.');
```

### Rendering

[](#rendering)

To render your flash messages in your view, simply include the bundled view partial in your master layout:

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

Note that the bundled view partial is geared for Bootstrap out of the box.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 94.3% 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 ~264 days

Recently: every ~418 days

Total

9

Last Release

1881d ago

Major Versions

v1.0.1 → v2.02015-06-26

v2.1.1 → v3.02016-08-23

v3.1.0 → v4.0.02020-04-02

PHP version history (6 changes)v1.0.1PHP &gt;=5.4.0

v2.0PHP &gt;=5.5.9

v3.0PHP &gt;=5.6.4

v3.1.0PHP &gt;=7.1.3

v4.0.0PHP ^7.2

v4.1.0PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/55915858d65ae931237d7e8ae69125f0245d3490fbe74fdd0743749ab5396244?d=identicon)[thekanbo](/maintainers/thekanbo)

---

Top Contributors

[![kaidesu](https://avatars.githubusercontent.com/u/355659?v=4)](https://github.com/kaidesu "kaidesu (33 commits)")[![cmgmyr](https://avatars.githubusercontent.com/u/4693481?v=4)](https://github.com/cmgmyr "cmgmyr (2 commits)")

---

Tags

laravelflashcaffeinated

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[caffeinated/menus

Laravel Menus

134159.5k5](/packages/caffeinated-menus)[cartalyst/alerts

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

3064.2k](/packages/cartalyst-alerts)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[caffeinated/bonsai

Asset management package for the Laravel 5 framework.

2513.4k](/packages/caffeinated-bonsai)

PHPackages © 2026

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