fix template notification not showing with z-index

This commit is contained in:
Khoubza Younes
2021-08-31 03:00:41 +01:00
parent 77e43642b9
commit 23316deb42
4 changed files with 9 additions and 6 deletions
+1
View File
@@ -21,6 +21,7 @@
},
"files": [
"src/Prime/helpers.php",
"src/Laravel/helpers.php",
"src/Toastr/Laravel/Resources/functions/toastr.php",
"src/Noty/Laravel/Resources/functions/noty.php",
"src/Notyf/Laravel/Resources/functions/notyf.php",
+1 -1
View File
@@ -3,7 +3,7 @@
return array(
'default' => 'template',
'root_script' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@0.1.6/dist/flasher.min.js',
'root_script' => 'https://cdn.jsdelivr.net/npm/@flasher/flasher@0.1.8/dist/flasher.min.js',
'template_factory' => array(
'default' => 'tailwindcss',
+6 -4
View File
@@ -4,16 +4,18 @@ if (!function_exists('flasher')) {
/**
* @param string $message
* @param string $type
* @param string $title
*
* @return \Flasher\Prime\Flasher
*/
function flasher($message = null, $type = 'success', $title = '', array $options = array(), array $stamps = array())
function flasher($message = null, $type = 'success', array $options = array(), array $stamps = array())
{
/** @var \Flasher\Prime\FlasherInterface $flasher */
$flasher = app('flasher');
if (null === $message && 0 === func_num_args()) {
return app('flasher.factory');
return $flasher;
}
return app('flasher.factory')->render($type, $message, $title, $options, $stamps);
return $flasher->with($stamps)->addFlash($type, $message, $options);
}
}
@@ -25,7 +25,7 @@ final class Configuration implements ConfigurationInterface
->defaultValue('template')
->end()
->scalarNode('root_script')
->defaultValue('https://cdn.jsdelivr.net/npm/@flasher/flasher@0.1.6/dist/flasher.min.js')
->defaultValue('https://cdn.jsdelivr.net/npm/@flasher/flasher@0.1.8/dist/flasher.min.js')
->end()
->arrayNode('root_scripts')
->prototype('scalar')->end()