Skip to content

Commit

Permalink
Merge branch 'hotfix-2.0.1' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Feb 16, 2018
2 parents 4cd2c6d + d555a6e commit 82cf4ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Expand Up @@ -4,10 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.3.2] - 2018-01-24
## [2.0.0] - 2018-02-16
### Added
- Support to Laravel 5.6

### Removed
- Trait `Notifications`.

## [1.3.0] - 2017-08-30
### Added
- Bumps Laravel version
Expand Down
8 changes: 6 additions & 2 deletions src/LaravelDesktopNotifierServiceProvider.php
Expand Up @@ -12,6 +12,7 @@
namespace NunoMaduro\LaravelDesktopNotifier;

use Illuminate\Console\Command;
use Joli\JoliNotif\NotifierFactory;
use Illuminate\Support\ServiceProvider;
use Joli\JoliNotif\NotifierFactory;
use NunoMaduro\LaravelDesktopNotifier\Contracts\Notification as NotificationContract;
Expand Down Expand Up @@ -43,8 +44,11 @@ function (string $text, string $body, $icon = null) {

$notification = $this->app[Contracts\Notification::class]
->setTitle($text)
->setBody($body)
->setIcon($icon);
->setBody($body);

if (! empty($icon)) {
$notification->setIcon($icon);
}

$notifier->send($notification);
}
Expand Down

0 comments on commit 82cf4ea

Please sign in to comment.