| Package Data | |
|---|---|
| Maintainer Username: | MasterRO |
| Maintainer Contact: | igoshin18@gmail.com (Roman Ihoshyn) |
| Package Create Date: | 2017-08-14 |
| Package Last Update: | 2025-05-01 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-26 15:02:14 |
| Package Statistics | |
|---|---|
| Total Downloads: | 24,696 |
| Monthly Downloads: | 315 |
| Daily Downloads: | 2 |
| Total Stars: | 3 |
| Total Watchers: | 1 |
| Total Forks: | 1 |
| Total Open Issues: | 0 |
Fast flash message integration.
From the command line, run:
composer require masterro/laravel-flashes
flash("Hello, {$name}!");
flash("Hello, {$name}!", 'success');
flash()->error($message); // ->success(), ->info(), ->warning(), ->error()
Flash::info('Flash!');
</body> tag@include('flash-messages::script')
Package will trigger notify(message, type) global javascript function that you should implement. As an example here is bootstrap-notify implementation:
window.notify = (message, type = 'success', options = {}) => {
if (type === 'error') {
type = 'danger';
}
return window.$.notify(window._.merge({
message: message
}, options), {
type: type,
animate: {
enter: 'animated bounceIn',
exit: 'animated bounceOut'
},
z_index: 9999,
delay: 7000,
mouse_over: 'pause',
offset: {
x: 20,
y: 30
}
});
};
It requires bootstrap, bootstrap-notify and animate.css
You can install and require those with yarn or npm:
yarn add bootstrap-notify or npm i bootstrap-notify --save