From cbbaca273eb0b2f3739fd0a655ce41dc7c7a1924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C9=99h=C9=99mm=C9=99d?= Date: Wed, 20 Jul 2022 01:29:19 +0400 Subject: [PATCH] It wasn't working as stack toast in Laravel, 'id' variable needs to be added when the error source id exists --- config/laravel-noty.php | 4 ++-- src/views/message.blade.php | 48 +++++++++++++++++++------------------ 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/config/laravel-noty.php b/config/laravel-noty.php index 815f279..e0b9eb9 100644 --- a/config/laravel-noty.php +++ b/config/laravel-noty.php @@ -32,9 +32,9 @@ 'closeWith' => ['click'], // ['click', 'button'] /* - * You can use this id with querySelectors. Generated automatically if false. + * You can use this id with querySelectors. Generated automatically if false (must be boolean false). */ - 'id' => 'false', + 'id' => false, /* * Default noty animation, you can use Animated.css or anything else diff --git a/src/views/message.blade.php b/src/views/message.blade.php index 993118e..e45c59f 100644 --- a/src/views/message.blade.php +++ b/src/views/message.blade.php @@ -1,34 +1,37 @@ @if(session()->has('noty.messages')) - @endif