docs: adding config options

This commit is contained in:
Ahmed Gamal
2024-05-25 21:24:19 +03:00
parent dd93f6e66d
commit 08eb6089e1
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -68,6 +68,12 @@ return [
// Automatically inject PHPFlasher assets in HTML response
'inject_assets' => true,
// Global options
'options' => [
'timeout' => 5000, // in milliseconds
'position' => 'top-right',
],
// Configuration for the flash bag (converting Laravel flash messages)
// Map Laravel session keys to PHPFlasher types
'flash_bag' => [
+6
View File
@@ -66,6 +66,12 @@ flasher:
# Automatically inject PHPFlasher assets in HTML response
inject_assets: true
# Global options
options:
# timeout in milliseconds
timeout: 5000
position: 'top-right'
# Map Symfony session keys to PHPFlasher notification types
flash_bag:
success: ['success']