PHPackages                             jalle19/laravel-unshitty-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. jalle19/laravel-unshitty-flash

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

jalle19/laravel-unshitty-flash
==============================

Highly opinionated flash message service for Laravel

2.1.0(1mo ago)1512MITPHPPHP &gt;=8.0CI passing

Since Apr 5Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/Jalle19/laravel-unshitty-flash)[ Packagist](https://packagist.org/packages/jalle19/laravel-unshitty-flash)[ RSS](/packages/jalle19-laravel-unshitty-flash/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (8)Used By (0)

laravel-unshitty-flash
======================

[](#laravel-unshitty-flash)

[![CI](https://github.com/Jalle19/laravel-unshitty-flash/actions/workflows/ci.yml/badge.svg)](https://github.com/Jalle19/laravel-unshitty-flash/actions/workflows/ci.yml)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e9fe2773a1b5be37e6daa59877d4de4e4569fc5a1ce7a0e47ae18fa60fc089f6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4a616c6c6531392f6c61726176656c2d756e7368697474792d666c6173682f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Jalle19/laravel-unshitty-flash/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/23bff494a4d41c4b710a4335044bd2cb072cf1889a22b388712a51055571ce85/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4a616c6c6531392f6c61726176656c2d756e7368697474792d666c6173682f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/Jalle19/laravel-unshitty-flash?branch=master)

Highly opinionated flash message service for Laravel. In contrast to practically all other similar libraries I've seen, this one:

- Supports multiple messages
- Supports multiple identical messages
- Supports flashing immediately, i.e. to the current request
- Let's you configure the session key used
- Forces you to inject the service, no magic facade
- Forces you to operate on the `Request` object itself

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

[](#installation)

Install the package:

```
composer require jalle19/laravel-unshitty-flash
```

Register the service provider:

```
'providers' => [
	...
	Jalle19\Laravel\UnshittyFlash\FlashServiceProvider::class,
	...
]
```

Publish the configuration file:

```
php artisan vendor:publish --provider="Jalle19\Laravel\UnshittyFlash\FlashServiceProvider"
```

Usage
-----

[](#usage)

Inject `FlashService` into the controller you want to create flash messages from, then use it like this:

```
$this->flashService->success($request, 'Some successful message');
$this->flashService->info($request, 'Some informational message');
$this->flashService->warning($request, 'Some warning');
$this->flashService->danger($request, 'Some dangerous message');
```

If you need to flash a message to the current request, (e.g. from a middleware that displays a permanent message), pass `true` as the third parameter:

```
$this->flashService->info($request, 'Permanently visible message', true);
```

If the message levels above are not enough for you, you can use an arbitrary level using the `message()` method:

```
$this->flashService->message($request, 'Some rant about libraries', 'rant');
```

To render the flash messages in your views, you can use something like the following snippet:

```
@foreach (session()->get(config('flash.session_key'), []) as $notification)

        &times;

        {!! $notification['message'] !!}

@endforeach
```

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance90

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity73

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

Recently: every ~833 days

Total

6

Last Release

46d ago

Major Versions

1.1.0 → 2.0.02026-05-13

PHP version history (3 changes)1.0.0PHP &gt;= 7.0

2.0.0PHP &gt;= 8.0

2.1.0PHP &gt;=8.0

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jalle19-laravel-unshitty-flash/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[api-platform/laravel

API Platform support for Laravel

58171.8k14](/packages/api-platform-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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