Skip to content

Commit

Permalink
update script blade file
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterRO94 committed May 17, 2021
1 parent a22f919 commit 4eef5f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/views/script.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@php($timeout = 1)
@foreach(array_reverse(session('flash_messages')) as $flash)
setTimeout(() => {
notify("{!! array_get($flash, 'message', '') !!}", '{{ array_get($flash, 'type', 'info') }}');
window.notify("{!! $flash['message'] ?? '' !!}", '{{ $flash['type'] ?? 'info' }}');
}, {{ $timeout }});
@php($timeout += config('flash-messages.timeout'))
@endforeach
Expand Down

0 comments on commit 4eef5f2

Please sign in to comment.