PHPackages                             sun/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. [Queues &amp; Workers](/categories/queues)
4. /
5. sun/laravel-flash

ActiveLibrary[Queues &amp; Workers](/categories/queues)

sun/laravel-flash
=================

Sun Flash helps you to add flash messages to your Laravel application.

v1.4(10y ago)21.8k1MITPHPPHP &gt;=5.4.0

Since Jul 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/IftekherSunny/Laravel-Flash)[ Packagist](https://packagist.org/packages/sun/laravel-flash)[ RSS](/packages/sun-laravel-flash/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (1)

Sun Flash
---------

[](#sun-flash)

[![Total Downloads](https://camo.githubusercontent.com/7405e7a0f49775b1bc98ff51e97385e8471fc55b353e145795f4c2d2b8605f65/68747470733a2f2f706f7365722e707567782e6f72672f73756e2f6c61726176656c2d666c6173682f646f776e6c6f616473)](https://packagist.org/packages/sun/laravel-flash) [![Latest Stable Version](https://camo.githubusercontent.com/1cb0a39b3d723e1d435099c6accadf2c6fb388220a8e3603d5fd67e1ef7d3ede/68747470733a2f2f706f7365722e707567782e6f72672f73756e2f6c61726176656c2d666c6173682f762f737461626c65)](https://packagist.org/packages/sun/laravel-flash) [![Latest Unstable Version](https://camo.githubusercontent.com/93714c620852d7a5159ed3c621b6c2829cf2b5371cf81dcafa1fd6c406b3c6ad/68747470733a2f2f706f7365722e707567782e6f72672f73756e2f6c61726176656c2d666c6173682f762f756e737461626c65)](https://packagist.org/packages/sun/laravel-flash) [![License](https://camo.githubusercontent.com/299a27739c5a0b357be2edc46488c9cdf4be6c4a7e2fa57f49be981f8ca644d3/68747470733a2f2f706f7365722e707567782e6f72672f73756e2f6c61726176656c2d666c6173682f6c6963656e7365)](https://packagist.org/packages/sun/laravel-flash)

Sun Flash message helps you to add flash messages to your Laravel application.

Installation Process
--------------------

[](#installation-process)

In order to install Sun Flash, just add

```
 "sun/laravel-flash": "1.*"

```

to your composer.json. Then run composer install or composer update.

Then in your config/app.php add

```
 Sun\Flash\FlashServiceProvider::class,

```

in the providers array and

```
 'Flash' => Sun\Flash\FlashFacade::class,

```

to the aliases array.

and also added Sun Flash message view where you want to show flash message.

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

```

#### To Publish Sun Flash View

[](#to-publish-sun-flash-view)

```
 php artisan vendor:publish

```

In the Sun Flash message view I used Bootstrap css framework for flash message styling. You also need to add bootstrap to your project.

###### Bootstrap css, js and jQuery cdn

[](#bootstrap-css-js-and-jquery-cdn)

```

```

Add this line at the bottom of your page

```

    $(function () {
        $('.flash-modal').modal();

    })

```

All Methods
-----------

[](#all-methods)

###### To show success message

[](#to-show-success-message)

```
Flash::success('Hello');
```

###### To show error message

[](#to-show-error-message)

```
Flash::error('Whoops! There were some problems with your input.');
```

###### To show info message

[](#to-show-info-message)

```
Flash::info('your message');
```

###### To show warning message

[](#to-show-warning-message)

```
Flash::warning('your message');
```

###### To show confirm message

[](#to-show-confirm-message)

```
Flash::confirm('Message Title', 'Your Message');
```

###### To show bootstrap modal popup message

[](#to-show-bootstrap-modal-popup-message)

```
Flash::overlay(
                 'Message Title',
                 'Your Message',
                 true,
                 'Allow Button Text',
                 'Allow Button Type',
                 'Dismiss Button Text',
                 'Dismiss Button Type
                 );
```

Defalut value for --

```
 Submit Button = false
 Allow Button Text = Save
 Allow Button Type = success
 Dismiss Button Text = Close
 Dismiss Button Type = default

```

Screenshots
-----------

[](#screenshots)

###### Flash Message Overlay:

[](#flash-message-overlay)

[![Overlay view](https://github.com/IftekherSunny/screenshot/raw/master/Laravel-Flash/overlay.png)](https://github.com/IftekherSunny/screenshot/blob/master/Laravel-Flash/overlay.png)

###### Flash Message Success:

[](#flash-message-success)

[![Overlay view](https://github.com/IftekherSunny/screenshot/raw/master/Laravel-Flash/success.png)](https://github.com/IftekherSunny/screenshot/blob/master/Laravel-Flash/success.png)

###### Flash Message Error:

[](#flash-message-error)

[![Overlay view](https://github.com/IftekherSunny/screenshot/raw/master/Laravel-Flash/error.png)](https://github.com/IftekherSunny/screenshot/blob/master/Laravel-Flash/error.png)

License
-------

[](#license)

This package is licensed under the [MIT License](https://github.com/IftekherSunny/laravel-flash/blob/master/LICENSE)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

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

Total

5

Last Release

3687d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7d233b865d7b1e1b86271e3bc70ddd077e1c01e4a83124e020fa39199c4af15a?d=identicon)[IftekherSunny](/maintainers/IftekherSunny)

---

Top Contributors

[![IftekherSunny](https://avatars.githubusercontent.com/u/8013399?v=4)](https://github.com/IftekherSunny "IftekherSunny (8 commits)")

---

Tags

messagephplaravelflashbootstrapflash message

### Embed Badge

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

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

###  Alternatives

[nahid/talk

Talk is a Laravel based realtime messaging, chatting and conversation system. It helps to develop users messaging, chatting and conversations in easy way.

1.6k58.1k4](/packages/nahid-talk)[baklysystems/laravel-chat-messenger

Laravel chat package

121.8k](/packages/baklysystems-laravel-chat-messenger)

PHPackages © 2026

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