Download the PHP package bilfeldt/laravel-flash-message without Composer
On this page you can find all versions of the php package bilfeldt/laravel-flash-message. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bilfeldt/laravel-flash-message
More information about bilfeldt/laravel-flash-message
Files in bilfeldt/laravel-flash-message
Package laravel-flash-message
Short Description Flash multiple messages using Laravels default session message flashing system
License MIT
Homepage https://github.com/bilfeldt/laravel-flash-message
Informations about the package laravel-flash-message
Flash multiple advanced messages with both text, messages and links
An opinionated solution for flashing multiple advanced messages from the backend and showing these on the frontend using prebuild customizable Tailwind CSS alert blade components.
Installation
Install the package via composer and you are ready to add messages and show these on the frontend.
You are now ready to use the blade components to show the messages on the frontend.
Optional: In case you wish to use the message flashing feature allowing messages to be made available on the next request (useful in combination with redirects) simply add the ShareMessagesFromSession
middleware to the web
group defined in app/Http/Kernel.php
just after the ShareErrorsFromSession
middleware:
Usage
Alert blade components
Simple usage of the alert blade components (message
, info
, success
, warning
, error
):
blade <x-flash::info :title="('Information')" :text="('This is a message which is relevant for you')" :messages="[('Bullet 1'), ('Bullet 2')]" :links="[('Read more') => 'https://example.com', ('Contact us') => 'https://example.com/contact']" /> blade <x-flash::errors :title="('Validation errors')" :text="('Please correct the following errors:')" /> bash composer test
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Credits
- [Anders Bilfeldt](https://github.com/bilfeldt): Main package developer
- [iAmine](https://tailwindcomponents.com/u/iaminos): The [Alert blade components](https://tailwindcomponents.com/component/alerts-components)
- [Showcode.app](https://showcode.app/): Service for creating terminal mockups
- [Beyond Code](https://banners.beyondco.de/): Banner generator
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
All versions of laravel-flash-message with dependencies
illuminate/contracts Version ^8.51 || ^9.0 || ^10.0 || ^11.0