Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Flash Message

Laravel Flash Message Laravel Package

ubient/laravel-flash-message

A lightweight Laravel package for working with flash messages. Store one-time notifications in the session and retrieve them after redirects, with a simple API for setting, checking, and displaying success, error, and info messages in your views.

View on GitHub
Deep Wiki
Context7

A Laravel package to display flash messages to your users in a fluent, clean, testable and easy-to-use way!

Frequently asked questions about Laravel Flash Message
What is ubient/laravel-flash-message used for?
It is a lightweight Laravel package for flashing one-time notifications to the session so users can see success, error, or info messages after a redirect. It provides a fluent API for setting and checking messages and simple retrieval in views. It uses Laravel's native session layer and requires no database changes.
How do I install ubient/laravel-flash-message with Composer?
Install it through Composer using the package name ubient/laravel-flash-message, then let Laravel package discovery register it. The package is described as needing no configuration or database changes, so typical installation is just the Composer require step plus clearing caches. Confirm that the package's Composer constraints match your Laravel and PHP versions before adopting it.
Does ubient/laravel-flash-message require configuration or migrations?
No. The package is designed as a drop-in helper over Laravel's existing session layer, and its overview states that no configuration files or database changes are required. You should still review the package documentation for your installed version in case optional setup notes apply.
Which Laravel versions does ubient/laravel-flash-message support?
The available release information says version 5.1.0 adds Laravel 8 compatibility, but it does not establish support for Laravel 9, 10, or 11. Check the package's illuminate dependency constraints and CI test matrix before assuming compatibility. If you are on a newer Laravel release, verify support separately instead of inferring it from the Laravel 8 release note.
How do I flash a success message after a redirect in Laravel?
Use the package's fluent helper to store a success notification before returning your redirect response, then read the pending messages in the destination view. This keeps session flash handling out of your controller logic and avoids repeating session code. Check the package documentation for the exact helper names and retrieval syntax for your installed version.
How do I display ubient/laravel-flash-message messages in a Blade view?
Retrieve the package's pending flash messages in your Blade template and render them in your layout's notification area. The package is built to make messages available after redirects through Laravel's session, so the view only needs to read and output them. Use the package documentation's retrieval examples to match the installed API.
Can I check if a flash message exists before rendering it?
Yes. The package is described as offering simple retrieval and checking of pending messages, which lets you conditionally render notification markup only when a message is present. This helps avoid empty alert containers in your Blade layout. Confirm the exact check method in the package documentation for your version.
Does ubient/laravel-flash-message work with Livewire components?
The overview says it can be dropped into any controller or Livewire component, and it stores messages through Laravel's existing session layer. That makes it suitable for Livewire flows that redirect or refresh and then show a one-time notice. Test the redirect and session lifecycle in your Livewire version, since component behavior can vary.
Is ubient/laravel-flash-message production-ready and maintained?
It is a small, dependency-free package, but the available release note only confirms Laravel 8 compatibility in 5.1.0 and does not prove support for Laravel 9 or later. Before production use, review the repository's Composer constraints, test matrix, open issues, and maintainer activity. Also note that Laravel 8 is past its security-fix window, so teams on current Laravel versions should verify compatibility carefully.
What are alternatives to ubient/laravel-flash-message for Laravel flash messages?
You can use Laravel's native session flash methods directly, flashing to the session and reading it in Blade, or use other notification packages that integrate with your frontend. This package's main value is its small fluent API for success, error, and info messages without configuration. Compare alternatives on current Laravel version support, maintenance activity, and whether you need toast or alert rendering.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections