PHPackages                             hen8y/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. [Mail &amp; Notifications](/categories/mail)
4. /
5. hen8y/laravel-flash

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

hen8y/laravel-flash
===================

Flash notification for laravel

2.0.4(1y ago)6398MITBladePHP ~8.0

Since Feb 28Pushed 1y ago1 watchersCompare

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

READMEChangelog (8)DependenciesVersions (9)Used By (0)

laravel-flash
=============

[](#laravel-flash)

[![downloads](https://camo.githubusercontent.com/8d1381a3833124689d2c45efba094457a8fe7a6da574095a265d84995717dcf1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68656e38792f6c61726176656c2d666c6173682e737667)](https://camo.githubusercontent.com/8d1381a3833124689d2c45efba094457a8fe7a6da574095a265d84995717dcf1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68656e38792f6c61726176656c2d666c6173682e737667)

Demo
----

[](#demo)

Checkout demo of the [laravel-flash](https://hen8y.dev/demo/flash)

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

[](#installation)

[PHP](https://php.net) 8.0, [LARAVEL](https://laravel.com), and [Composer](https://getcomposer.org) are required.

If you Intend to use livewire, make sure it is required [LIVEWIRE](https://livewire.laravel.com),

To get the latest version of Laravel Flash, simply require it

```
composer require hen8y/laravel-flash
```

Or add the following line to the require block of your `composer.json` file.

```
"hen8y/laravel-flash": "^2."
```

You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.

Once Laravel Flash is installed, you need to register the service provider. Open up config/app.php and add the following to the providers key.

```
'providers' => [
    ...
    Hen8y\Flash\FlashServiceProvider::class,
    ...
]
```

To reload your application run the following command:

```
composer dump-autoload
```

You can publish the configuration file and assets by running:

If you're also upgrading from `v1.*` make sure to delete the `public/vendor/hen8y/laravel-flash` folder and run this too

```
    php artisan vendor:publish --provider="Hen8y\Flash\LaravelFlashServiceProvider"
```

### Details of the Config file

[](#details-of-the-config-file)

The configuration-file `flash.php` would be published in your config dirctory after running the above command:

```
