PHPackages                             sakanjo/laravel-flashy - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. sakanjo/laravel-flashy

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

sakanjo/laravel-flashy
======================

Easy flash notifications for laravel

1.1.2(3y ago)045MITPHPPHP &gt;=6.0.0

Since Mar 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sakanjo/laravel-flashy)[ Packagist](https://packagist.org/packages/sakanjo/laravel-flashy)[ RSS](/packages/sakanjo-laravel-flashy/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Flashy
------

[](#flashy)

A powerful package for creating flash messages in Laravel.

[![License](https://camo.githubusercontent.com/20acaabc1e4a5c74377716b252620c1e822ab39b57bfaaaa8e2a8347b028b252/687474703a2f2f706f7365722e707567782e6f72672f73616b616e6a6f2f6c61726176656c2d666c617368792f6c6963656e7365)](https://packagist.org/packages/sakanjo/laravel-flashy)[![Latest Stable Version](https://camo.githubusercontent.com/6bb862be8ca150fb8af2fd834f44ee7060b18120887802941791870e4613e9e3/687474703a2f2f706f7365722e707567782e6f72672f73616b616e6a6f2f6c61726176656c2d666c617368792f76)](https://packagist.org/packages/sakanjo/laravel-flashy)[![Total Downloads](https://camo.githubusercontent.com/f5a50cd7bdc31dd197fc559a37dbf6e028573f306acab7adb5ffe05aa09019d5/687474703a2f2f706f7365722e707567782e6f72672f73616b616e6a6f2f6c61726176656c2d666c617368792f646f776e6c6f616473)](https://packagist.org/packages/sakanjo/laravel-flashy)[![GitHub Repo stars](https://camo.githubusercontent.com/9b120b6dc6c103809ec44fd8939a8c63241c3e4c1ab5b932ecd06a4f52dc23d7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f73616b616e6a6f2f6c61726176656c2d666c617368793f7374796c653d736f6369616c)](https://camo.githubusercontent.com/9b120b6dc6c103809ec44fd8939a8c63241c3e4c1ab5b932ecd06a4f52dc23d7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f73616b616e6a6f2f6c61726176656c2d666c617368793f7374796c653d736f6369616c)

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

[](#installation)

Require this package with composer using the following command

```
composer require sakanjo/laravel-flashy
```

Next publish the config file using the vendor:publish Artisan command

```
php artisan vendor:publish --provider="Flashy\ServiceProvider"
```

Usage
-----

[](#usage)

```
public function store(Request $request) {
  User::create([
    'name' => 'Salah Kanjo',
    'email' => 'dev.salah.kanjo@gmail.com'
  ]);
  Success('Successfully created');
}
```

```
public function edit(Request $request) {
  Error_if(!auth()->user()->verified(), "Please verify your account first");

  ...
}
```

Or even a custom flash

```
Flash('info', 'Account requires verification', ['url' => 'http://example.org']);
```

Why
---

[](#why)

Imagine the next senario where you have a function inside another function and you want to return an error from the inner one all the way up

```
public function getData() {
  $user = Http::get('http://example.com/users/' . auth()->id);
  Error_if($user->failed(), 'Something went wrong');
  return $user;
}
```

```
public function index() {
  $data = getData(); // Stops execution here if user not found

  return inertia('Home', compact('data'))
}
```

Support
-------

[](#support)

Do you like this project? Support it by donating

Maintainers
-----------

[](#maintainers)

Laravel flashy is developed and maintained by [Salah Kanjo](https://github.com/sakanjo)

License
-------

[](#license)

Laravel flashy is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~17 days

Total

4

Last Release

1105d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/121197517?v=4)[Salah Kanjo](/maintainers/sakanjo)[@sakanjo](https://github.com/sakanjo)

---

Top Contributors

[![Salah0Syr](https://avatars.githubusercontent.com/u/42831451?v=4)](https://github.com/Salah0Syr "Salah0Syr (4 commits)")[![sakanjo](https://avatars.githubusercontent.com/u/121197517?v=4)](https://github.com/sakanjo "sakanjo (2 commits)")

---

Tags

laravelinertiaflash

### Embed Badge

![Health badge](/badges/sakanjo-laravel-flashy/health.svg)

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

###  Alternatives

[edvinaskrucas/notification

Package for Laravel for helping to manage flash / instant notifications / messages.

520393.9k10](/packages/edvinaskrucas-notification)[devmarketer/laraflash

A powerful and flexible flash notifications system. Improving over built-in Laravel Flash messaging functionality.

6310.3k1](/packages/devmarketer-laraflash)[bpocallaghan/notify

Laravel 5 Flash Notifications with icons and animations and with a timeout

3416.6k3](/packages/bpocallaghan-notify)[bpocallaghan/alert

A helper package to flash a bootstrap alert to the browser.

1819.6k3](/packages/bpocallaghan-alert)[capsulescodes/inertia-mailable

Seamlessly craft dynamic and reusable email templates using Inertia

286.3k](/packages/capsulescodes-inertia-mailable)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.4k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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