Download the PHP package oanhnn/laravel-flash-message without Composer
On this page you can find all versions of the php package oanhnn/laravel-flash-message. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oanhnn/laravel-flash-message
More information about oanhnn/laravel-flash-message
Files in oanhnn/laravel-flash-message
Package laravel-flash-message
Short Description Laravel Flash Message for Laravel 5.4+
License MIT
Homepage https://github.com/oanhnn/laravel-flash-message
Informations about the package laravel-flash-message
Introduction
Easy Flash Messages for Your Laravel 5.4+ Application
Main features
This composer package offers a Twitter Bootstrap optimized flash messaging setup for your Laravel 5.4+ Applications.
Requirements
- php >=7.0
- Laravel 5.4+
Installation
Begin by pulling in the package through Composer.
Next, if using Laravel 5.5+, you done. If using Laravel 5.4, include the service provider within your config/app.php
file.
Finally, as noted above, the default CSS classes for your flash message are optimized for Twitter Bootstrap. As such, pull in the Bootstrap's CSS within your HTML or layout file.
Usage
Within your controllers, before you perform a redirect, use Flash
facade.
You may also do:
method | description |
---|---|
Flash::success('message') |
Set the flash message with theme "success alert". |
Flash::warning('message') |
Set the flash message with theme "warning alert". |
Flash::error('message') |
Set the flash message with theme "error alert". |
Flash::info('message') |
Set the flash message with theme "info alert". |
Flash::info('message')->important() |
Add a close button to the flash message. |
Flash::info('message')->overlay('title') |
Display flash message as a modal overlay with a title. |
And include flash message view into your blade template.
Changelog
See all change logs in CHANGELOG
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email to Oanh Nguyen instead of using the issue tracker.
Credits
- Oanh Nguyen
- All Contributors
License
This project is released under the MIT License.
Copyright © 2017-2018 Oanh Nguyen.
All versions of laravel-flash-message with dependencies
illuminate/contracts Version 5.4.*|5.5.*
illuminate/session Version 5.4.*|5.5.*
illuminate/support Version 5.4.*|5.5.*