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

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

leantony/laravel-flash
======================

Flash notifier based on Jeffery Way's laracasts/flash that uses toast js

1.0(8y ago)1134MITJavaScript

Since Feb 21Pushed 8y ago2 watchersCompare

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

READMEChangelogDependencies (3)Versions (2)Used By (0)

Laravel Flash
=============

[](#laravel-flash)

An slightly modified version of jeffrey way's `laracasts/flash` composer package to issue the flash notifications based on [toastr js](https://github.com/CodeSeven/toastr).

Installation
============

[](#installation)

The package is available on composer. Available for laravel 5.1+

```
composer install leantony/laravel-flash
```

Once you have installed, you need to add the service provider to your `app.php` configuration. Like so;

```
Leantony\Flash\Providers\ServiceProvider::class
```

If you are using laravel 5.5+, the provider will be discovered automatically. No need to add it manually to `app.php`

Publishing assets
=================

[](#publishing-assets)

You'll need to publish the javascript so that you can add it to your blade view/layout. To do so, you can run this command;

```
php artisan vendor:publish --provider="Leantony\Flash\Providers\ServiceProvider" --tag="assets"
```

Make changes to your view/layout
================================

[](#make-changes-to-your-viewlayout)

> Note that you'll need the toastr js asset loaded before the js provided by this package

```

@include('leantony::flash.toast')
```

Usage
=====

[](#usage)

Same as `laracasts/flash`. Anytime you `flash('some message')`, [depending on how you call the function](https://github.com/laracasts/flash#usage), the alert you get should be a toastr notification.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

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

Unknown

Total

1

Last Release

3050d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/78dd5b6393580ed9a6be5b673dd1c5e2ed09e53b91c77f64fd6c815acd902057?d=identicon)[leantony](/maintainers/leantony)

---

Top Contributors

[![leantony](https://avatars.githubusercontent.com/u/7967272?v=4)](https://github.com/leantony "leantony (7 commits)")

---

Tags

flash-messageslaravel-flashlaravellaravel 5laravel5flashtoastrlaravel-flashleantony

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/leantony-laravel-flash/health.svg)](https://phpackages.com/packages/leantony-laravel-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)[leantony/laravel-grid

A grid view for laravel, inspired by the yii2 grid widget

9061.2k](/packages/leantony-laravel-grid)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k9.6k1](/packages/vinkius-labs-laravel-page-speed)[venturedrake/laravel-crm

A free open source CRM built as a package for laravel projects

42010.0k](/packages/venturedrake-laravel-crm)[linkxtr/laravel-qrcode

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

3614.9k](/packages/linkxtr-laravel-qrcode)

PHPackages © 2026

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