webdo-cz / tall-flash
Flash messages using TALL stack
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/webdo-cz/tall-flash
Requires
- php: >=7.3.0
- illuminate/support: ^7.0|^8.0
- livewire/livewire: ^1.2|^2.0
Requires (Dev)
- phpunit/phpunit: ^6.1
This package is not auto-updated.
Last update: 2025-10-03 12:18:03 UTC
README
Installation
install via composer
composer require webdo-cz/tall-flash
Setup
add before </body>
<livewire:flash-messages />
Usage
make a call to the flash()
function.
$flash = [ 'type' => 'success', 'title' => 'Success', 'message' => 'Post added to our database', ]; flash($flash, $this);
($this is used for livewire support)
There are two types: success, error You can use this short function
flashSuccess([ 'title' => 'Success', 'message' => 'Post added to our database', ], $this);
and
flashError([ 'title' => 'Error', 'message' => 'Something bad happen', ], $this);