Flash Messages Package for Laravel

Simple Flash Messages for Laravel Framework Applications.



This package allows to use Bootstrap 3/4/5 flash messaging for Laravel 6+ framework applications.


Begin by pulling in the package through Composer.

composer require apphp/flash

Next, make sure the default CSS classes for your flash message are optimized for Bootstrap. You may either pull in the Bootstrap's CSS within your HTML or layout file, or write your own CSS classes based on them. If you use Bootstrap 3, part of classes, like "primary" and "secondary" will not have styling.

<link rel="stylesheet" href="//getbootstrap.com/docs/4.0/dist/css/bootstrap.min.css">/span>


In your controllers, before you perform a redirect or render a view, make a call to the flash() function.

public function store() { flash('Welcome Message!'); return redirect()->route('home'); }

Demo: GitHub


  • Multiple messages
  • Hidding messages
  • Standard and short syntax
  • Bootstrape based


  • PHP >=7.0
  • Laravel 6+
  • Bootstrap 3+


Related products
License Details

Regular License

A regular license allows an item to be used in one project for either personal or commercial use by you or on behalf of a client. The item cannot be offered for resale either on its own or as part of a project. Distribution of source files is not permitted.

Create Your Free Account
Please remember that this information is essential to use our services correctly.
After creating the account you will be able to download all of our FREE products.
Fields marked with * are mandatory

Please send me information about updates, new products, specials and discounts from ApPHP!
We recommend that your password should be at least 6 characters long and should be different from your username/email. Please use only letters of the English alphabet to enter your name.

Your e-mail address must be valid. We use e-mail for communication purposes (order notifications, etc). Therefore, it is essential to provide a valid e-mail address to be able to use our services correctly.

All your private data is confidential. We will never sell, exchange or market it in any way. Please refer to Privacy Policy.

By clicking "Create Account", you are indicating that you have read and agree to the ApPHP Terms & Conditions.

Quick Registration with: Facebook / Google