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

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

sammaye/laravel-flash
=====================

My very Laravel first plugin, based on https://github.com/laracasts/flash

021PHP

Since Sep 17Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#laravel-flash)

My very first plugin, based on

This is strictly designed as a session based alert for errors and the such.

This is not supposed to be used as a general alert.

How to make an alert
--------------------

[](#how-to-make-an-alert)

To make an alert:

```
Flash::error('You got hell to pay')
```

which supports these types of alerts:

- error
- success
- warning
- info

### How to make it dismissible

[](#how-to-make-it-dismissible)

Simply add a second paramter of `true` or `false` depending on whether you want it dismissible or not.

```
Flash::error('You got hell to pay', true)
```

This alert can be dismissed because it has the second parameter of `true`.

How to display alerts in my template
------------------------------------

[](#how-to-display-alerts-in-my-template)

Simple:

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

This plugin registers all of its views at the flash namespace and only has one view, `flash`.

This plugin also registers the view for publishing as such you can do this to enable the view to be overridden:

```
php artisan vendor:publish --provider="sammaye\Flash\Providers\FlashServiceProvider"
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7357836d822160350576f98b85244f4d5f960be303a2fcaa15a330187966cbd4?d=identicon)[Sammaye](/maintainers/Sammaye)

---

Top Contributors

[![Sammaye](https://avatars.githubusercontent.com/u/323996?v=4)](https://github.com/Sammaye "Sammaye (11 commits)")

### Embed Badge

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

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

###  Alternatives

[phpdocumentor/graphviz

Wrapper for Graphviz

9611.3M21](/packages/phpdocumentor-graphviz)[beberlei/composer-monorepo-plugin

312503.1k](/packages/beberlei-composer-monorepo-plugin)[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

118126.9k](/packages/stephenjude-filament-feature-flags)[brotkrueml/schema

Embedding schema.org vocabulary - API and view helpers for schema.org markup

33584.6k13](/packages/brotkrueml-schema)[eduarguz/shift-php-cs

PHP CS Fixer - Laravel Coding Style Ruleset

1145.5k29](/packages/eduarguz-shift-php-cs)

PHPackages © 2026

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