diff --git a/composer.json b/composer.json index 2138c71..8581f86 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "oriceon/toastr-5-laravel", + "name": "carlosrgzm/toastr-5-laravel", "description": "Easy toastr notifications for Laravel 5", "keywords": ["toastr", "notification", "laravel", "php"], "homepage": "https://github.com/oriceon/toastr-5-laravel", diff --git a/src/Kamaln7/Toastr/Toastr.php b/src/Kamaln7/Toastr/Toastr.php index 1396c00..15dba8b 100644 --- a/src/Kamaln7/Toastr/Toastr.php +++ b/src/Kamaln7/Toastr/Toastr.php @@ -67,7 +67,7 @@ public function render() { } // Toastr output - $output .= 'toastr.' . $notification['type'] . "('" . str_replace("'", "\\'", htmlentities($notification['message'])) . "'" . (isset($notification['title']) ? ", '" . str_replace("'", "\\'", htmlentities($notification['title'])) . "'" : null) . ');'; + $output .= 'toastr.' . $notification['type'] . "('" . $notification['message'] . "'" . (isset($notification['title']) ? ", '" . str_replace("'", "\\'", htmlentities($notification['title'])) . "'" : null) . ');'; } $output .= '';