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

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

willishq/laravel5-flash
=======================

Flash message management for Laravel 5.

v0.2(11y ago)79881MITPHP

Since Jan 28Pushed 11y agoCompare

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

READMEChangelog (1)DependenciesVersions (3)Used By (0)

Laravel 5 Flash Message Helper
==============================

[](#laravel-5-flash-message-helper)

Inspired by [Laracasts Flash](https://github.com/laracasts/flash)

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

[](#installation)

Install via composer:

```
composer require willishq/laravel5-flash

```

Usage
-----

[](#usage)

Ideally use within your base controller as so:

```
namespace App\Http\Controllers;

use Illuminate\Foundation\Bus\DispatchesCommands;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Willishq\Flash\Flash;

abstract class Controller extends BaseController {

	use DispatchesCommands, ValidatesRequests;
	/**
	 * @var Flash
	 */
	protected $flash;
	public function __construct(Flash $flash)
	{
		$this->flash = $flash;
	}
}
```

To fire off a flash message:

```
class FooController extends BaseController {

	public function somethingNeat()
	{
	    // epic codes
	    $this->flash->success('success message');
	    return redirect('/');
	}
}
```

To display flash messages in your view:

```
@if($flash->exists())
	@if($flash->isPanel())

			{{ $flash->title }}
			{{ $flash->message }}

	@else

			{{ $flash->message }}
			&times;

	@endif

@endif
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

4173d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1564903?v=4)[Andrew Willis](/maintainers/willishq)[@willishq](https://github.com/willishq)

---

Top Contributors

[![willishq](https://avatars.githubusercontent.com/u/1564903?v=4)](https://github.com/willishq "willishq (6 commits)")

---

Tags

laravelsessionflash

### Embed Badge

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

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

###  Alternatives

[plasticbrain/php-flash-messages

A modern take on PHP session-based flash messages

184229.8k8](/packages/plasticbrain-php-flash-messages)[rairlie/laravel-locking-session

Provide session locking in Laravel

92486.9k1](/packages/rairlie-laravel-locking-session)[vcian/pulse-active-sessions

A Laravel Pulse card to show active user session.

11582.7k](/packages/vcian-pulse-active-sessions)[coderello/laraflash

Advanced flash messages for Laravel.

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

Flash Messages for Laravel

4650.4k2](/packages/caffeinated-flash)[ikkez/f3-flash

Add simple Flash Messages and Flash Keys to PHP Fat-Free Framework

2027.4k6](/packages/ikkez-f3-flash)

PHPackages © 2026

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