install via composer
composer require crrack/livewire-flash
add before </body>
<livewire:flash-container />
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)