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

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

kagga/flash
===========

Package to simply and beautify Flash messages in Laravel 5

1.0(10y ago)156MITPHPPHP &gt;=5.5.9

Since Feb 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Kagga/Flash)[ Packagist](https://packagist.org/packages/kagga/flash)[ RSS](/packages/kagga-flash/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (9)Used By (0)

Simple Flash Messages
=====================

[](#simple-flash-messages)

Lets get started
----------------

[](#lets-get-started)

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

[](#installation)

Install this package through composer

Simply run `composer require kagga/flash`

If using Laravel 5 add the service provider in `config/app.php`.

```
'providers' => [
    Kagga\Flash\FlashServiceProvider::class
];
```

For convenience, add a facade alias to this same file at the bottom:

```
'aliases' => [
    'Flash' => Kagga\Flash\Facade\Flash::class
];
```

Usage
-----

[](#usage)

Within your controllers, before the redirect

```
public function update()
{
    Flash::success('Update','Successfully Updated');

    return Redirect::home();
}
```

You may also do:

- `Flash::info('Title','Message')`
- `Flash::success('Title','Message')`
- `Flash::error('Title','Message')`
- `Flash::warning('Title','Message')`
- `Flash::overlay('Title',' Message', 'Level')` By default the level is success you can override if you specify a level.

This package will set a few keys in the session.

- 'message' - The session key.
- 'message\_overlay' - The session key for an overlay.

Alternatively, if you're using Laravel, you may reference the `flash()` helper function, instead of the facade. Here's an example:

```
public function store()
{

    flash()->success('Title','Message');

    return Redirect::home();
}
```

> This package makes use of sweetalert

> Add the Javascript and css files from  to your views

To add the Flash view to your view just include it has shown below.

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

If you need to modify the flash message partial, you can run:

```
php artisan vendor:publish
```

The package view will now be located in the `\resources\views\vendor\flash` directory.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Total

8

Last Release

3787d ago

Major Versions

v0.8 → 1.02016-02-16

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17244316?v=4)[Kagga](/maintainers/Kagga)[@Kagga](https://github.com/Kagga)

---

Top Contributors

[![jokamjohn](https://avatars.githubusercontent.com/u/8848097?v=4)](https://github.com/jokamjohn "jokamjohn (13 commits)")

---

Tags

laravelflash-messages

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k9.6k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90128.1k](/packages/emargareten-inertia-modal)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3614.9k](/packages/linkxtr-laravel-qrcode)[wearepixel/laravel-cart

A cart implementation for Laravel

1355.6k](/packages/wearepixel-laravel-cart)

PHPackages © 2026

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