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

ActiveLibrary

jambasangsang/flash
===================

This package will send flash notification to your application

v1.0.1(4y ago)52.9k↓100%1MITPHP

Since Feb 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/singhateh/Laravel-Flash-Notification)[ Packagist](https://packagist.org/packages/jambasangsang/flash)[ RSS](/packages/jambasangsang-flash/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

[![Issues](https://camo.githubusercontent.com/a0cb43a66ebebfe2ec2b2f68b96662883ce79833fea6633453a52745779c1917/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f73696e6768617465682f4c61726176656c2d466c6173682d4e6f74696669636174696f6e)](https://github.com/singhateh/Laravel-Flash-Notification/issues)[![Latest Version](https://camo.githubusercontent.com/9d023d3f10f06de9673865f695c8165e5abc8adef7017c4de91b21557241712a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a616d626173616e6773616e672f666c6173682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jambasangsang/flash)[![License](https://camo.githubusercontent.com/b4a0dae2d922f84ccd53e7bfdfa5f4360cc431c65ccb5721efd591801deb1430/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73696e6768617465682f4c61726176656c2d466c6173682d4e6f74696669636174696f6e)](https://github.com/singhateh/Laravel-Flash-Notification/license)[![Stars](https://camo.githubusercontent.com/34038dc63d51f0777d990e1966121783d6150a3c6af69fbcb0203cd39d0c3e4a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f73696e6768617465682f4c61726176656c2d466c6173682d4e6f74696669636174696f6e)](https://github.com/singhateh/Laravel-Flash-Notification/stargazers)[![Total Downloads](https://camo.githubusercontent.com/3bb16cc72ab4e2c9caacd689215097efe6de802e1d4f278951547b6320c1c229/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a616d626173616e6773616e672f666c6173682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jambasangsang/flash)

Laravel Flash Notification
==========================

[](#laravel-flash-notification)

Flash Notification Types:

 [![Laravel Flash Notification](screenshot.gif)](screenshot.gif)

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

[](#installation)

Quick Installation using composer.

Run:

```
 composer require jambasangsang/flash
```

### Then you can add the service provider to `config/app.php`.

[](#then-you-can-add-the-service-provider-to-configappphp)

In Laravel versions 5.6 and beyond, this step can be skipped if package auto-discovery is enabled.

```
'providers' => [
    Jambasangsang\Flash\FlashNotificationServiceProvider::class,
];
```

### Publish the configuration file:

[](#publish-the-configuration-file)

```
php artisan vendor:publish --provider='Jambasangsang\Flash\FlashNotificationServiceProvider' --tag="flash-config"
```

### If not found run the below command:

[](#if-not-found-run-the-below-command)

```
 php artisan vendor:publish
```

And select `Jambasangsang\Flash\FlashNotificationServiceProvider`

Usage
-----

[](#usage)

#### 1. If your application is using jQuery do not include \[@jQuery\], Otherwise Add the below code in your main view template:

[](#1-if-your-application-is-using-jquery-do-not-include-jquery-otherwise-add-the-below-code-in-your-main-view-template)

CSS `@flashStyle`,

JS `@jQuery`, `@flashScript`, `@flashRender`

Example:

```

        @flashStyle

    @jQuery
    @flashScript
    @flashRender

```

#### 2. Within your controllers, before you perform a redirection...

[](#2-within-your-controllers-before-you-perform-a-redirection)

Example:

```
