mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
fix template notification not showing with z-index
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user