PHP code example of tonystore / livewire-notification
1. Go to this page and download the library: Download tonystore/livewire-notification 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/ */
tonystore / livewire-notification example snippets
//config/livewire-notification
return [
'toast' => [
'title' => '', //Defaut Title
'position' => 'topRight', //Defaut Position
'timeout' => 3000, //Display Time
'modal' => null, //Very important, it defines if an event is triggered to close a Bootstrap modal.
],
$this->alert(
'success',
'Example of notification.',
);
$this->alert('info','Example of notification with modal event', [
'modal' => '#hideModal'
]
);
sh
php artisan vendor:publish --provider="Tonystore\LivewireNotification\LivewireNotificationProvider" --tag="config"
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.