diff --git a/src/Kamaln7/Toastr/Toastr.php b/src/Kamaln7/Toastr/Toastr.php index 6cd2ca7..92cb923 100644 --- a/src/Kamaln7/Toastr/Toastr.php +++ b/src/Kamaln7/Toastr/Toastr.php @@ -54,6 +54,9 @@ public function render() { foreach($notifications as $notification) { $config = $this->config->get('toastr.options'); + if(empty($config)){ + $config = []; + } if(count($notification['options']) > 0) { // Merge user supplied options with default options