PHP code example of enesekinci / laravel-livewire-flash-toast
1. Go to this page and download the library: Download enesekinci/laravel-livewire-flash-toast library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
enesekinci / laravel-livewire-flash-toast example snippets
session()->flash('success', 'Kaydedildi.');
session()->flash('error', 'Hata.');
$this->dispatch('toast', message: 'Kaydedildi.', type: 'success');
$this->dispatch('notify', message: 'Silindi.', type: 'error');