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

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

ez-laravel/flash-messages
=========================

Easy flash messages for your Laravel application.

v1.0.3(5y ago)02.1kMITPHPPHP ^7.3CI failing

Since Jun 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ez-laravel/flash-messages)[ Packagist](https://packagist.org/packages/ez-laravel/flash-messages)[ RSS](/packages/ez-laravel-flash-messages/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (7)Used By (0)

EZ Laravel Flash Messages
=========================

[](#ez-laravel-flash-messages)

[![Build Status](https://camo.githubusercontent.com/7be90672a0ca1979bb26606ccc8cec6f7260a844ae59b45a4d6570419b53e987/68747470733a2f2f7472617669732d63692e6f72672f657a2d6c61726176656c2f666c6173682d6d657373616765732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ez-laravel/flash-messages) [![StyleCI](https://camo.githubusercontent.com/1ab61846958bb82fe40d716b6ac21006c5458119751da674f17747ef8b2dfc89/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3236343734333435352f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/264743455)

Package to provide you with an easy way to implement flash messages in your Laravel application.

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

[](#installation)

Run the following command in your project directory to install the package:

```
composer require ez-laravel/flash-messages

```

Publish the vue components using the following commands:

```
php artisan vendor:publish --provider=EZ\FlashMessages\FlashServiceProvider --tag=vue

```

This will publish a `flash-messages` directory in your `resources/js/components` directory.

Make sure these components are (auto) loaded in. I usually make this happen using:

```
// app.js

// Automatically load all vue components
const files = require.context('./', true, /\.vue$/i);
files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default));
```

To be able to render the 'important' icon this package makes use of [Font Awesome](https://fontawesome.com) icons so make sure that's loaded if you intend to use the 'important' status

Usage
-----

[](#usage)

Use the following blade directive to include the flash messages partial in any view you'd like to display flash messages in

```
@include("flash::messages")

```

Afterwards you can call the following methods from your controller to flash messages to the session which will be displayed on the next page load.

```
// Message with level 'info'
flash('Your message');

// Message with level 'success'
flash('Your message')->success();

// Message with level 'error'
flash('Your message')->error();

// Message with level 'warning'
flash('Your message')->warning();

// Overlay (modal) with default title and custom message
flash('Your message')->overlay();

// Overlay (modal) with custom title and message
flash()->overlay('Your message', 'Your title');

// Message with level 'info' which is important (so it gets a warning icon)
flash('Your message')->important();
```

Flash message partial
---------------------

[](#flash-message-partial)

If you'd like to customize the flash message partial you can publish it using the following command:

```
php artisan vendor:publish --provider=EZ\FlashMessages\FlashServiceProvider --tag=views

```

This will publish the partial to the `resources/views/vendor/flash` directory.

Customize styling
-----------------

[](#customize-styling)

All styling is defined inside of the vue components you've published.

To do
-----

[](#to-do)

- Add an option to automatically hide the flash message after X seconds

Credits
-------

[](#credits)

This package was basically copied from [laracasts/flash](https://github.com/laracasts/flash) as a practice project. I used to use that package a lot and this one is custom tailored to how I like to use it. So big thank you to laracasts for the code and all lessons provided by their platform.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

4

Last Release

2071d ago

PHP version history (2 changes)v1.0.0PHP ^7.2.5

v1.0.3PHP ^7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/55e5124004792b4439022af1fd07ba61116981eee7711009eec2b3fc8dfcd651?d=identicon)[verheijen](/maintainers/verheijen)

---

Top Contributors

[![0x029Ax0](https://avatars.githubusercontent.com/u/17317618?v=4)](https://github.com/0x029Ax0 "0x029Ax0 (27 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  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)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

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

The Illuminate Pagination package.

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

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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