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

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

conquest/flash
==============

This is my package flash

v0.1.1(1y ago)08MITPHPPHP ^8.1

Since Jul 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jdw5/conquest-flash)[ Packagist](https://packagist.org/packages/conquest/flash)[ Docs](https://github.com/jdw5/conquest-flash)[ GitHub Sponsors](https://github.com/Conquest)[ RSS](/packages/conquest-flash/feed)WikiDiscussions main Synced 1mo ago

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

Share flash messages to your frontend
=====================================

[](#share-flash-messages-to-your-frontend)

[![Latest Version on Packagist](https://camo.githubusercontent.com/589e70d7a0bd31223cbb7eae1f351891aded41b742baff10a2ba018da74295a9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6e71756573742f666c6173682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/conquest/flash)[![GitHub Tests Action Status](https://camo.githubusercontent.com/733521f0557faa5309a45a679f34cd324233f44de74fd653baf82dcb9c8a818e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6477352f636f6e71756573742d666c6173682f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/jdw5/conquest-flash/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/ce84ae9904d90bce11580989746bf18770a0c8627ee4f5d3296968293d8db35a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6477352f636f6e71756573742d666c6173682f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/jdw5/conquest-flash/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/21e7778ea71fc5ba3ab9661eddaa69cdbb0cd3b0d931567bb7cc68d68b350d8e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6e71756573742f666c6173682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/conquest/flash)

Flash exposes a global `flash` helper, which allows you to easily add flash messages to your session. These messages can be passed to your frontend using the `HandleInertiaRequests` middleware, see the usage section for more information.

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

[](#installation)

You can install the package via composer:

```
composer require conquest/flash
```

Usage
-----

[](#usage)

The package ships with a global `flash` helper. Call this helper with a message to add flash messages to the session. You can configure the message, description and type. Two classes are provided which can be added separately. The `Toast` class allows for a duration to be set, a `Banner` class has no duration and will remain until dismissed.

If not specified, the flash message is assumed to be a `Toast`.

```
flash('Hello, World!')
flash()->toast('Hello, World!')
flash()->banner('Hello, world!')
```

To pass this to an Inertia frontend, add the following to the `HandleInertiaRequests` middleware array:

```
'flash' => Flash::messages(),
```

It is important to use the `flash` key if you intend on using the Vue + Inertia plugin.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Joshua Wallace](https://github.com/jdw5)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

Total

2

Last Release

682d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/15a6681aedaa970f3cdc6061a522528ee8d5b9de8003ac0ba0a32bd445b28442?d=identicon)[jdw5](/maintainers/jdw5)

---

Top Contributors

[![jdw5](https://avatars.githubusercontent.com/u/87954417?v=4)](https://github.com/jdw5 "jdw5 (16 commits)")

---

Tags

laravelflashconquest

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[gloudemans/shoppingcart

Laravel Shoppingcart

3.7k756.7k12](/packages/gloudemans-shoppingcart)[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[anahkiasen/former

A powerful form builder

1.4k1.4M14](/packages/anahkiasen-former)[coderello/laraflash

Advanced flash messages for Laravel.

15737.2k1](/packages/coderello-laraflash)[caffeinated/flash

Flash Messages for Laravel

4649.5k2](/packages/caffeinated-flash)[cartalyst/alerts

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

3064.2k](/packages/cartalyst-alerts)

PHPackages © 2026

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