PHPackages                             rasmusgodske/flashbeep - 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. rasmusgodske/flashbeep

ActiveLibrary

rasmusgodske/flashbeep
======================

Flash messages made easy.

1.0.0(1y ago)0116MITPHPPHP ^7.4 || ^8.0

Since Jun 2Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

FlashBeep
=========

[](#flashbeep)

FlashBeep is a flexible flash messaging system for Laravel applications. It allows easy integration and customization of flash messages across your application, supporting dynamic instantiation, named parameters, and predefined message types.

FlashBeep makes it easy to create flash messages using the `flashMessage` helper function. The function takes a message object and stores it in the session for display in your views.

Features
--------

[](#features)

- **Dynamic Message Creation**: Create flash messages on-the-fly using named or positional parameters.
- **Configurable**: Define and customize flash message types via configuration.
- **Extendable**: Easily extend with custom message types.

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

[](#installation)

Use Composer to install FlashBeep into your PHP project:

```
composer require rasmusgodske/flashbeep
```

Configuration
=============

[](#configuration)

After installing the package, comes with a default configuration file. You can publish the configuration file using the following command:

```
php artisan vendor:publish --provider="RasmusGodske\FlashBeep\FlashServiceProvider"
```

Edit the `config/flash_messages.php` to set up your message types and session keys:

```
