PHPackages                             tonning/flashable - 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. tonning/flashable

ActiveLibrary

tonning/flashable
=================

A simple trait to flash when model events are fired, like `created`, `updated`, and `saved`.

1.1.1(6y ago)26.6k1[1 PRs](https://github.com/tonning/flashable/pulls)MITPHPPHP &gt;=5.6.4

Since Sep 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/tonning/flashable)[ Packagist](https://packagist.org/packages/tonning/flashable)[ Docs](https://github.com/tonning/flashable)[ RSS](/packages/tonning-flashable/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (2)Dependencies (1)Versions (7)Used By (0)

Flashable
=========

[](#flashable)

A simple trait to flash when model events are fired, like `created`, `updated`, and `saved`. Using Jeffrey Way's excellent [Flash](https://github.com/laracasts/flash) package to actually display the flash messages.

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

[](#installation)

Begin by pulling in the package through Composer.

```
composer require tonning/flashable

```

Then add the trait to the model you want to automatically flash on crud actions.

```
use Tonning\Flashable\Flashable;

class Post extends Model
{
    use Flashable;

    ...
}
```

Customization
-------------

[](#customization)

You can specify the name of the model by adding a `getModelName` method on you model.

```
public function getModelName() {
  return 'Blog post';
}
```

For even more fine grain control you can add a protected property on the model.

```
protected $flashable = [
  'created' => 'Your blog post have been created. Good job!',
  'updated' => 'I hope nobody saw those mistakes...',
  'deleted' => 'Be gone blog post!'
]
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

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

Total

4

Last Release

2249d ago

PHP version history (2 changes)1.0.1PHP &gt;=5.6.4

1.1.0PHP 7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e9527ee45d5bf016d30f77ce27f61e964a126cf168255fe68625af4ae83bf26?d=identicon)[tonning](/maintainers/tonning)

---

Top Contributors

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

---

Tags

laravel

### Embed Badge

![Health badge](/badges/tonning-flashable/health.svg)

```
[![Health](https://phpackages.com/badges/tonning-flashable/health.svg)](https://phpackages.com/packages/tonning-flashable)
```

###  Alternatives

[infyomlabs/laravel-generator

InfyOm Laravel Generator

3.8k2.3M13](/packages/infyomlabs-laravel-generator)[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[venturedrake/laravel-crm

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

3879.4k](/packages/venturedrake-laravel-crm)[lms-laravel/lms-laravel

The Laravel Framework.

4981.8k](/packages/lms-laravel-lms-laravel)[konekt/appshell

Foundation for Laravel business applications

8257.1k2](/packages/konekt-appshell)[asgardcms/core-module

The core module for AsgardCMS. This is required for every install.

8343.7k27](/packages/asgardcms-core-module)

PHPackages © 2026

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